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:
@@ -67,7 +67,7 @@ DECLARE
|
|||||||
viewer_role_id UUID;
|
viewer_role_id UUID;
|
||||||
guest_role_id UUID;
|
guest_role_id UUID;
|
||||||
BEGIN
|
BEGIN
|
||||||
FOR tenant_rec IN SELECT id FROM tenants WHERE deleted_at IS NULL
|
FOR tenant_rec IN SELECT id FROM tenants
|
||||||
LOOP
|
LOOP
|
||||||
-- Create or find admin role for this tenant
|
-- Create or find admin role for this tenant
|
||||||
SELECT id INTO admin_role_id
|
SELECT id INTO admin_role_id
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ DECLARE
|
|||||||
new_user_id UUID;
|
new_user_id UUID;
|
||||||
mapped_status TEXT;
|
mapped_status TEXT;
|
||||||
BEGIN
|
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
|
LOOP
|
||||||
-- Map guest status to user_tenants status
|
-- Map guest status to user_tenants status
|
||||||
mapped_status := CASE
|
mapped_status := CASE
|
||||||
|
|||||||
Reference in New Issue
Block a user