The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
backup-restore.mdx: Better fix (#36857)
Tilman Vogel68fe370acea8
diff --git a/apps/docs/content/guides/platform/migrating-within-supabase/backup-restore.mdx b/apps/docs/content/guides/platform/migrating-within-supabase/backup-restore.mdxindex fd3644ed209..f26c2f72814 100644--- a/apps/docs/content/guides/platform/migrating-within-supabase/backup-restore.mdx+++ b/apps/docs/content/guides/platform/migrating-within-supabase/backup-restore.mdx@@ -227,7 +227,7 @@ supabase db diff --linked --schema auth,storage > changes.sqlThe new project has the old project's Storage buckets, but the Storage objects need to be migrated manually. Use this script to move storage objects from one project to another.```js-// npm install @supabase/supabase-js@1+// npm install @supabase/supabase-js@2const { createClient } = require('@supabase/supabase-js')const OLD_PROJECT_URL = 'https://xxx.supabase.co'@@ -238,7 +238,9 @@ const NEW_PROJECT_SERVICE_KEY = 'new-project-service-key-yyy';(async () => {const oldSupabaseRestClient = createClient(OLD_PROJECT_URL, OLD_PROJECT_SERVICE_KEY, {- schema: 'storage',+ db: {+ schema: 'storage',+ },})const oldSupabaseClient = createClient(OLD_PROJECT_URL, OLD_PROJECT_SERVICE_KEY)const newSupabaseClient = createClient(NEW_PROJECT_URL, NEW_PROJECT_SERVICE_KEY)