perf(struct): ddd
This commit is contained in:
11
scripts/db/verify/0009_tenant_oauth_clients.sql
Normal file
11
scripts/db/verify/0009_tenant_oauth_clients.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM information_schema.tables
|
||||
WHERE table_name = 'tenant_oauth_clients'
|
||||
) THEN
|
||||
RAISE EXCEPTION 'tenant_oauth_clients table does not exist';
|
||||
END IF;
|
||||
END $$;
|
||||
|
||||
11
scripts/db/verify/0010_backfill_tenant_oauth_clients.sql
Normal file
11
scripts/db/verify/0010_backfill_tenant_oauth_clients.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM information_schema.tables
|
||||
WHERE table_name = 'tenant_oauth_clients'
|
||||
) THEN
|
||||
RAISE EXCEPTION 'tenant_oauth_clients table does not exist';
|
||||
END IF;
|
||||
END $$;
|
||||
|
||||
Reference in New Issue
Block a user