fix: migration 0019 - remove updated_at from roles INSERT (roles table has no updated_at column)
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user