TorbatYar/backend/core-service/alembic
Mortezakoohjani 0d424c500a feat(platform): complete commercial runtime consolidation
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>
2026-07-29 11:11:53 +03:30
..
versions feat(platform): complete commercial runtime consolidation 2026-07-29 11:11:53 +03:30
env.py Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30
README.md Ship enterprise Accounting FE/API with CRUD parity and production wiring. 2026-07-24 15:26:43 +03:30
script.py.mako Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +03:30

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.