Unify commercial runtime ownership across backend and frontend so platform, experience, and hospitality modules use the shared commercial source of truth. 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.