mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Merge pull request #14447 from supabase/qiao/mig-docs
This commit is contained in:
1 file changed
+3
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user