Skip to content

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

chore: update migration guide for restoring roles and extensions

Qiao Han8c9ddda7026a
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 0bb0f3b310a..cebf408bb77 100644
--- a/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
+++ b/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
@@ -49,7 +49,6 @@ In your new project:
1. Enable [Database Webhooks](https://app.supabase.com/project/_/database/hooks) if you enabled them in your old project.
2. Enable any [extensions](https://app.supabase.com/project/_/database/extensions) that were enabled in your old project.
-3. Create any [custom roles](https://app.supabase.com/project/_/database/roles) that were created in your old project.
Then run the following command from your terminal:
@@ -57,11 +56,14 @@ Then run the following command from your terminal:
psql \
--single-transaction \
--variable ON_ERROR_STOP=1 \
+ --file roles.sql \
--file schema.sql \
--file data.sql \
--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.
+
### Enable publication on tables
Replication for Realtime is disabled for all tables in your new project. On the [Replication](https://app.supabase.com/project/_/database/replication) page in the Dashboard, select your new project and enable replication for tables that were enabled in your old project.