fix: migration 0019 - remove updated_at from roles INSERT (roles table has no updated_at column)

This commit is contained in:
Agent Zero
2026-07-15 22:13:55 +02:00
parent 23e5cf1e15
commit ada5594ce5
+1 -2
View File
@@ -75,7 +75,7 @@ def upgrade() -> None:
]: ]:
op.execute( op.execute(
sa.text(""" sa.text("""
INSERT INTO roles (id, tenant_id, name, permissions, denied_permissions, field_permissions, permission_version, created_at, updated_at) INSERT INTO roles (id, tenant_id, name, permissions, denied_permissions, field_permissions, permission_version, created_at)
SELECT SELECT
gen_random_uuid(), gen_random_uuid(),
t.id, t.id,
@@ -84,7 +84,6 @@ def upgrade() -> None:
'[]'::jsonb, '[]'::jsonb,
'{}'::jsonb, '{}'::jsonb,
1, 1,
now(),
now() now()
FROM tenants t FROM tenants t
WHERE NOT EXISTS ( WHERE NOT EXISTS (