-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a `--skip-validation` flag to the `start` command. If set, migration validation is skipped. For example, this table has a `NOT NULL` `name` field: ```json { "name": "01_create_table", "operations": [ { "create_table": { "name": "products", "columns": [ { "name": "id", "type": "serial", "pk": true }, { "name": "name", "type": "varchar(255)", "nullable": false } ] } } ] } ``` starting this migration will fail as the `name` field is already `NOT NULL`: ```json { "name": "02_set_nullable", "operations": [ { "alter_column": { "table": "products", "column": "name", "nullable": false, "up": "name", "down": "name" } } ] } ``` ``` Error: migration is invalid: column "name" on table "products" is NOT NULL ``` But if the start command is invoked with `--skip-validation` then the start command succeeds. This is part of #239
- Loading branch information
1 parent
eef4a9b
commit 0992c8d
Showing
6 changed files
with
28 additions
and
5 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
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
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