-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wrangler]: fix missing error on failed d1 migrations (#3124)
* [wrangler]: fix missing error on failed d1 migrations * apply PR feedback * Update apply.tsx * improve logging during migration apply * Update execute.tsx * Update .changeset/lemon-garlics-provide.md --------- Co-authored-by: Max Rozen <3822106+rozenmd@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
41 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
fix: failed d1 migrations not treated as errors | ||
|
||
This PR teaches wrangler to return a non-success exit code when a set of migrations fails. | ||
|
||
It also cleans up `wrangler d1 migrations apply` output significantly, to only log information relevant to migrations. |
This file contains 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
This file contains 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
This file contains 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