From 9c0436243750a0dc10560b5c5bb13709b9cf3ce3 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 6 Nov 2025 08:18:33 -0500 Subject: [PATCH] docs: small fixes to dbmate docs --- migrations/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/migrations/README.md b/migrations/README.md index cab371553..ae26f4289 100644 --- a/migrations/README.md +++ b/migrations/README.md @@ -102,7 +102,12 @@ dbmate --migrations-dir="migrations/db/migrations" new '' Then, execute the migration at `./migrations/db/xxxxxxxxx_` and make sure it runs successfully with: ```shell -dbmate --no-dump-schema --migrations-dir"migrations/db/migrations" up +# Make sure DATABASE_URL is set, or use the -u flag to specify the database connection +# Example with DATABASE_URL: +dbmate --no-dump-schema --migrations-dir="migrations/db/migrations" up + +# Or with -u flag: +dbmate --no-dump-schema --migrations-dir="migrations/db/migrations" -u "postgres://supabase_admin:postgres@localhost:5435/postgres?sslmode=disable" up ``` Note: Migrations are applied using the `supabase_admin` superuser role, as specified in the "How it was Created" section above.