The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix incorrect/missing arguments in pg_dump / psql terminal commands used for migrating between projects
bohan06e8aea8dada6
diff --git a/web/docs/guides/database.mdx b/web/docs/guides/database.mdxindex 31ffb3fc4fa..9173dd3942e 100644--- a/web/docs/guides/database.mdx+++ b/web/docs/guides/database.mdx@@ -118,10 +118,10 @@ Migrating projects can be achieved using standard PostgreSQL tooling. This is pa#### Migrate the database1. Run `ALTER ROLE postgres SUPERUSER` in the *old* project's SQL editor-2. Run `pg_dump --clean --if-exists --quote-all-identifiers -d $OLD_DB_URL > dump.sql` from your terminal+2. Run `pg_dump --clean --if-exists --quote-all-identifiers -h $OLD_DB_URL -U postgres > dump.sql` from your terminal3. Run `ALTER ROLE postgres NOSUPERUSER` in the *old* project's SQL editor4. Run `ALTER ROLE postgres SUPERUSER` in the *new* project's SQL editor-5. Run `psql $NEW_DB_URL -f dump.sql` from your terminal+5. Run `psql -h $NEW_DB_URL -U postgres -f dump.sql` from your terminal6. Run `TRUNCATE storage.objects` in the *new* project's SQL editor7. Run `ALTER ROLE postgres NOSUPERUSER` in the *new* project's SQL editor