gate2: fix all migrations for fresh DB installation

This commit is contained in:
Agent Zero
2026-07-31 19:16:11 +02:00
parent d37388423d
commit 010ef448e7
40 changed files with 230 additions and 207 deletions
@@ -13,10 +13,7 @@ depends_on = None
def upgrade() -> None:
op.add_column(
"custom_field_definitions",
sa.Column("sensitivity", sa.String(20), nullable=False, server_default="normal"),
)
op.execute("ALTER TABLE IF EXISTS custom_field_definitions ADD COLUMN IF NOT EXISTS sensitivity VARCHAR(20) NOT NULL DEFAULT 'normal'")
def downgrade() -> None: