Files
marriage/.history/migrate_20250808200656.sh
Andrey K. Choi cc87dcc0fa
Some checks failed
continuous-integration/drone/push Build is failing
api development
2025-08-08 21:58:36 +09:00

6 lines
352 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

for s in auth profiles match chat payments; do
f="services/$s/alembic/env.py"
# добавим импорт пакета моделей, если его нет
grep -q "from app import models" "$f" || \
sed -i 's/from app.db.session import Base # noqa/from app.db.session import Base # noqa\nfrom app import models # noqa: F401/' "$f"
done