gate2: fix all migrations for fresh DB installation
This commit is contained in:
@@ -39,11 +39,11 @@ def upgrade() -> None:
|
||||
name="ck_epol_effect",
|
||||
),
|
||||
)
|
||||
op.create_index("ix_epol_entity_type", "entity_policies", ["entity_type"])
|
||||
op.create_index("ix_epol_principal", "entity_policies", ["principal_type", "principal_id"])
|
||||
op.create_index("ix_epol_tenant", "entity_policies", ["tenant_id"])
|
||||
op.create_index("ix_epol_priority", "entity_policies", ["priority"])
|
||||
op.create_index("ix_epol_enabled", "entity_policies", ["enabled"])
|
||||
op.execute('CREATE INDEX IF NOT EXISTS ix_epol_entity_type ON entity_policies (entity_type)')
|
||||
op.execute('CREATE INDEX IF NOT EXISTS ix_epol_principal ON entity_policies (principal_type, principal_id)')
|
||||
op.execute('CREATE INDEX IF NOT EXISTS ix_epol_tenant ON entity_policies (tenant_id)')
|
||||
op.execute('CREATE INDEX IF NOT EXISTS ix_epol_priority ON entity_policies (priority)')
|
||||
op.execute('CREATE INDEX IF NOT EXISTS ix_epol_enabled ON entity_policies (enabled)')
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
|
||||
Reference in New Issue
Block a user