diff --git a/packages/supabase/migrations/20240808093300_v0.10.0_realtime_tenant.sql b/packages/supabase/migrations/20240808093300_v0.10.0_realtime_tenant.sql deleted file mode 100644 index 27f58c83d3..0000000000 --- a/packages/supabase/migrations/20240808093300_v0.10.0_realtime_tenant.sql +++ /dev/null @@ -1,22 +0,0 @@ --- Disable the foreign key constraint -ALTER TABLE _realtime.extensions -DROP CONSTRAINT extensions_tenant_external_id_fkey; - --- Update the external_id and name for the realtime tenant -UPDATE _realtime.tenants -SET external_id = 'supabase-realtime', - name = 'supabase-realtime' -WHERE external_id = 'realtime-dev' - AND name = 'realtime-dev'; - --- Update the tenant_external_id for the realtime extension -UPDATE _realtime.extensions -SET tenant_external_id = 'supabase-realtime' -WHERE tenant_external_id = 'realtime-dev'; - --- Re-enable the foreign key constraint -ALTER TABLE _realtime.extensions -ADD CONSTRAINT extensions_tenant_external_id_fkey -FOREIGN KEY (tenant_external_id) -REFERENCES _realtime.tenants(external_id) -ON DELETE CASCADE; \ No newline at end of file diff --git a/packages/supabase/zarf.yaml b/packages/supabase/zarf.yaml index 094219fcdf..8efa9a33c5 100644 --- a/packages/supabase/zarf.yaml +++ b/packages/supabase/zarf.yaml @@ -116,6 +116,7 @@ components: namespace: leapfrogai files: - "manifests/declarative-conf-configmap.yaml" + - "manifests/realtime-service.yaml" - name: supabase-migrations description: "Migrations that operate on a database configuration level that require higher elevated permissions (ie adding extensions)"