From 8c9ddda7026a6e2762888a52c9aa185f26f97616 Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Thu, 18 May 2023 14:05:04 +0800 Subject: [PATCH] chore: update migration guide for restoring roles and extensions --- .../guides/platform/migrating-and-upgrading-projects.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.