Register all active platform services and base features in core DB so admin can manage them, add delivery/hospitality/sports-center backend phases, update apps catalog and production deploy tooling. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| versions | ||
| env.py | ||
| README.md | ||
| script.py.mako | ||
Alembic Migrations
مدیریت نسخههای اسکیمای دیتابیس core_platform_db.
دستورها
# ساخت migration جدید بر اساس تغییر مدلها
alembic revision --autogenerate -m "توضیح تغییر"
# اعمال migrationها
alembic upgrade head
# بازگشت یک مرحله
alembic downgrade -1
آدرس دیتابیس از
settings.database_url_sync(متغیر محیطیDATABASE_URL_SYNC) خوانده میشود.
Related: Database Architecture, Coding Standards — migrations.