fix: code cleanup
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user