gate2: fix all migrations for fresh DB installation
This commit is contained in:
@@ -30,8 +30,8 @@ def upgrade():
|
||||
sa.Column("updated_at", sa.DateTime(timezone=True), nullable=False, server_default=sa.func.now()),
|
||||
sa.Column("deleted_at", sa.DateTime(timezone=True), nullable=True),
|
||||
)
|
||||
op.create_index("ix_plugin_allowlist_plugin_name", "plugin_allowlist", ["plugin_name"])
|
||||
op.create_index("ix_plugin_allowlist_hash", "plugin_allowlist", ["allowed_hash"])
|
||||
op.execute('CREATE INDEX IF NOT EXISTS ix_plugin_allowlist_plugin_name ON plugin_allowlist (plugin_name)')
|
||||
op.execute('CREATE INDEX IF NOT EXISTS ix_plugin_allowlist_hash ON plugin_allowlist (allowed_hash)')
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
||||
Reference in New Issue
Block a user