Skip to content

Commit 9d042fc

Browse files
authored
docs: small fixes to dbmate docs (#1895)
1 parent b6b2588 commit 9d042fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

migrations/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ dbmate --migrations-dir="migrations/db/migrations" new '<some message>'
102102
Then, 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

108113
Note: Migrations are applied using the `supabase_admin` superuser role, as specified in the "How it was Created" section above.

0 commit comments

Comments
 (0)