Uh oh!
There was an error while loading. Please reload this page.
feat(cli): Add --no-apply flag for db schema declarative sync command - #5220
Conversation
The earlier behavior did not have any way to opt out of the prompt without also force applying via `--apply` in the `db schema declarative sync` command. This change introduces a new flag called `no-apply` , allowing users to generate migration files without applying them to the local database.
Coverage Report for CI Build 26177550163Warning No base build found for commit Coverage: 63.767%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats
💛 - Coveralls |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mittal-parth
commented
May 14, 2026
My understanding is that the failing CI / Codegen (pull_request) will get resolved once we merge the deploy branch into this branch? Or do I need to run a |
Your understanding is correct, no action needed on your side 👍 |
Uh oh!
There was an error while loading. Please reload this page.
Summary
This change introduces a new flag called
no-applyto thedb schema declarative sync command, allowing users to generate migration files without applying them to the local database.Current behavior
The only escape hatches today:
--apply— force-applies the migration (opposite of what's wanted)true | supabase db schema declarative sync ... 2>&1 | catCloses#5218
New behavior
--no-applyis set, the command writes the migration file and skips the apply step without any prompt--no-applyoverrides global--yesand cannot be combined with--apply.