You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
db:migrate: show which database it targets and ask before applying #65
pnpm db:migrate applies migrations to whatever DATABASE_URL points at, without saying which database that is. While several environments exist (local, Supabase), it's easy to migrate the wrong one, or to apply SQL by hand and forget to record it.
What to build
Before changing anything, print the target: host, database and user (for Supabase, the project ref), never the password.
List the migrations it would apply, or say it's up to date.
Ask for confirmation in a terminal; --yes skips the question (for scripts and CI). Without a terminal and without --yes, apply nothing.
--status prints the target and what's pending, and stops.
Done when
Running it shows the target and the pending list and waits for "y" before applying.
✅ Running the command shows the target database (host, database, user, Supabase project) without the password before doing anything.
✅ It lists the migrations it would apply, or says the database is already up to date.
✅ It waits for "y" in a terminal, applies without asking when given --yes, and applies nothing without a terminal and without --yes.
⚠️ The status option shows the target and pending list and applies no migrations. On a fresh database it still creates the empty table that tracks migrations.
✅ Listing pending migrations is covered by an automated test.
Not tested in the browser: behaviour change with no page to click.
Activity
drippa-ai commentedon Oct 12, 2026
Drippa Sign-Off: Show the target database and pending migrations, and confirm before db:migrate applies them
✅ Delivers ticket #65 — 4 of 5 outcomes
Open in Drippa
What was promised
Not tested in the browser: behaviour change with no page to click.
Full review on the pull request
Updated by Drippa • 2026-10-12 19:19 UTC
Show which database db:migrate targets and ask before applying (#66)