fix migration

This commit is contained in:
2026-06-16 09:26:31 +03:00
parent 8f3ac70b20
commit 81c8117520
2 changed files with 43 additions and 12 deletions
+2 -1
View File
@@ -190,8 +190,9 @@ deploy/ примеры nginx
# 1. Бэкап
cp -a data data.bak.$(date +%Y%m%d)
# 2. Поднять postgres
# 2. Поднять postgres и пересобрать backend (скрипт миграции в образе)
docker compose up -d postgres
docker compose build backend
# 3. Dry-run (подсчёт строк)
docker compose run --rm backend python scripts/migrate_sqlite_to_postgres.py --dry-run