feat(db): add hub.db.applyMigrationsDuringDev: boolean option#837
Merged
atinux merged 1 commit intonuxt-hub:mainfrom Feb 13, 2026
Merged
feat(db): add hub.db.applyMigrationsDuringDev: boolean option#837atinux merged 1 commit intonuxt-hub:mainfrom
hub.db.applyMigrationsDuringDev: boolean option#837atinux merged 1 commit intonuxt-hub:mainfrom
Conversation
|
Someone is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
hub.db.applyMigrationsDuringDev: boolean option #836hub.db.applyMigrationsDuringDev: boolean option
atinux
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #836
Summary of what was implemented (everything is analogous to existing
applyMigrationsDuringBuild):applyMigrationsDuringDev?: booleantoDatabaseConfigwith JSDoc (@default true).applyMigrationsDuringDev: boolean toResolvedDatabaseConfig.applyMigrationsDuringDev: truein the defu config inresolveDatabaseConfig.!hub.db.applyMigrationsDuringDev) return so migrations are skipped when the option is false.applyMigrationsDuringDev: truein the default SQLite test.applyMigrationsDuringDev: false.applyMigrationsDuringDevstays true (D1 does not force it to false).docs/content/docs/2.database/4.migrations.md: Extended the note to describeapplyMigrationsDuringDevand showed both options in the example.docs/content/docs/2.database/1.index.md: In the Docker/Kubernetes section, updated the intro and addedapplyMigrationsDuringDev: falseto the SQLite, PostgreSQL, and MySQL examples.All tests pass, and there are no linter errors.