fix(migrations): Remove deleted_at references from migration 0112/0113

- Migration 0112: tenants table has no deleted_at column, remove filter
- Migration 0113: guest_users table has no deleted_at column, remove filter
This commit is contained in:
Agent Zero
2026-08-06 11:36:38 +02:00
parent 04d6562f5b
commit a0c7a80381
2 changed files with 2 additions and 2 deletions
@@ -67,7 +67,7 @@ DECLARE
viewer_role_id UUID;
guest_role_id UUID;
BEGIN
FOR tenant_rec IN SELECT id FROM tenants WHERE deleted_at IS NULL
FOR tenant_rec IN SELECT id FROM tenants
LOOP
-- Create or find admin role for this tenant
SELECT id INTO admin_role_id
@@ -34,7 +34,7 @@ DECLARE
new_user_id UUID;
mapped_status TEXT;
BEGIN
FOR guest_rec IN SELECT * FROM guest_users WHERE deleted_at IS NULL OR deleted_at IS NULL
FOR guest_rec IN SELECT * FROM guest_users
LOOP
-- Map guest status to user_tenants status
mapped_status := CASE