@davoodmehraban89 / Aram-1 / commits / 30fb15d
Fork 0

style: ruff format migration files (Phase-0 format gate)

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>

davoodmehraban89 committed Dec 3, 2026 at 09:35 UTC 30fb15dad6a41e0116e6c1b1b05a9fcc75833a9f
3 files changed +7 -8
backend/migrations/env.py
-1
@@ -46,4 +46,3 @@ if context.is_offline_mode():
46 run_migrations_offline()
47 else:
48 run_migrations_online()
49 -
backend/migrations/versions/20260820_01_initial_schema.py
+1 -1
@@ -2,6 +2,7 @@
2
3 Revision ID: 20260820_01
4 """
5 +
6 from alembic import op
7
8 from aram_backend.database import Base
@@ -21,4 +22,3 @@ def upgrade() -> None:
22 def downgrade() -> None:
23 bind = op.get_bind()
24 Base.metadata.drop_all(bind=bind)
24 -
backend/migrations/versions/20261203_04_immutability_audit.py
+6 -6
@@ -32,13 +32,13 @@ def downgrade() -> None:
32 dialect = bind.dialect.name
33 from aram_backend.db_triggers import _YEAR_TABLES
34
35 - names = [
36 - f"aram_lock_{t}_{op}"
37 - for t in _YEAR_TABLES
38 - for op in ("insert", "update", "delete")
35 + names = [f"aram_lock_{t}_{op}" for t in _YEAR_TABLES for op in ("insert", "update", "delete")]
36 + names += [
37 + "aram_audit_update",
38 + "aram_audit_delete",
39 + "aram_fiscal_year_transition",
40 + "aram_fiscal_year_no_delete",
41 ]
40 - names += ["aram_audit_update", "aram_audit_delete",
41 - "aram_fiscal_year_transition", "aram_fiscal_year_no_delete"]
42 for name in names:
43 if dialect == "sqlite":
44 bind.execute(sa.text(f"DROP TRIGGER IF EXISTS {name}"))