perf(struct): ddd
This commit is contained in:
10
scripts/db/migrations/0010_backfill_tenant_oauth_clients.sql
Normal file
10
scripts/db/migrations/0010_backfill_tenant_oauth_clients.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
BEGIN;
|
||||
|
||||
INSERT INTO tenant_oauth_clients (tenant_id, client_id)
|
||||
SELECT t.id, c.client_id
|
||||
FROM tenants t
|
||||
CROSS JOIN oauth_clients c
|
||||
ON CONFLICT (tenant_id, client_id) DO NOTHING;
|
||||
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user