File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,12 @@ dbmate --migrations-dir="migrations/db/migrations" new '<some message>'
102102Then, execute the migration at ` ./migrations/db/xxxxxxxxx_<some_message> ` and make sure it runs successfully with:
103103
104104``` shell
105- dbmate --no-dump-schema --migrations-dir" migrations/db/migrations" up
105+ # Make sure DATABASE_URL is set, or use the -u flag to specify the database connection
106+ # Example with DATABASE_URL:
107+ dbmate --no-dump-schema --migrations-dir=" migrations/db/migrations" up
108+
109+ # Or with -u flag:
110+ dbmate --no-dump-schema --migrations-dir=" migrations/db/migrations" -u " postgres://supabase_admin:postgres@localhost:5435/postgres?sslmode=disable" up
106111```
107112
108113Note: Migrations are applied using the ` supabase_admin ` superuser role, as specified in the "How it was Created" section above.
You can’t perform that action at this time.
0 commit comments