fix: code cleanup

This commit is contained in:
Furqan-14
2026-08-31 20:39:41 -04:00
parent b923b3ed15
commit 6cd665e95a
199 changed files with 61 additions and 2536 deletions
@@ -50,9 +50,6 @@ def upgrade() -> None:
sa.ForeignKey("tenants.id", ondelete="CASCADE"),
nullable=False,
),
# SET NULL rather than CASCADE: deleting a plan must not erase the record
# that a workspace was once on it. History that disappears when the thing
# it describes is removed is not history.
sa.Column(
"from_plan_id",
UUID(as_uuid=True),
@@ -88,8 +85,6 @@ def upgrade() -> None:
["tenant_id", sa.text("created_at DESC")],
)
# Tenant-scoped, so it gets the same treatment as every other tenant table —
# a workspace's commercial history is its own business.
op.execute("ALTER TABLE tenant_subscription_history ENABLE ROW LEVEL SECURITY")
op.execute("ALTER TABLE tenant_subscription_history FORCE ROW LEVEL SECURITY")
op.execute(