TorbatYar/backend/core-service/alembic
Mortezakoohjani 12c8615615 Ship enterprise Accounting FE/API with CRUD parity and production wiring.
Adds accounting-service PATCH/archive, fiscal helpers, COA templates and setup status, plus SuperApp Accounting UI (DS, scoreboard, masters, vouchers, ledger, ops modules) with session refresh and HTTPS public API URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 15:26:43 +03:30
..
versions Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing. 2026-07-21 21:43:33 +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.