Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update migrating-and-upgrading-projects.mdx

Mark Burggrafec6b74c9e471
diff --git a/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx b/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
index cebf408bb77..21cb64606b3 100644
--- a/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
+++ b/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
@@ -31,7 +31,9 @@ Migrating projects can be achieved using the Supabase CLI. This is particularly
- Install [Postgres](https://www.postgresql.org/download/) so you can run `psql` and `pg_dump`.
- Install [Supabase CLI](https://supabase.com/docs/guides/cli#installation).
- Create a new [Supabase project](https://app.supabase.com).
-- Store the old project's database URL as `$OLD_DB_URL` and the new project's as `$NEW_DB_URL`.
+- Install [Docker Desktop](https://www.docker.com) for your platform.
+- Set environment variables for the old project's database URL as `$OLD_DB_URL` and the new project's as `$NEW_DB_URL`.
+To find the database URL for a project, go to the project's dashboard page [Project Settings/Database](https://supabase.com/dashboard/project/_/settings/database) and look at `Connection string / URI`. For example, to set the `$OLD_DB_URL` you would run `export OLD_DB_URL=postgresql://postgres:[YOUR-PASSWORD]@db.[YOUR-PROJECT-REF#].supabase.co:5432/postgres`.
### Backup your old database
@@ -62,7 +64,9 @@ psql \
--dbname "$NEW_DB_URL"
```
-Note if you have created any [custom roles](https://app.supabase.com/project/_/database/roles) with `login` attribute, you have to manually set their passwords in the new project.
+Notes:
+- If you have created any [custom roles](https://app.supabase.com/project/_/database/roles) with `login` attribute, you have to manually set their passwords in the new project.
+- If you receive any permission errors when running `supabase db dump --db-url "$OLD_DB_URL" -f schema.sql`, you may need to edit the `schema.sql` file and change any lines saying `OWNER TO "supabase_admin"` to `OWNER TO "postgres"`.
### Enable publication on tables