-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
schema.json
to correctly describe the 'alter column' operati…
…on (#261) Update `schema.json` to correctly describe the 'alter column' operation. The [alter column ](https://github.com/xataio/pgroll/tree/main/docs#alter-column) operation is used to perform different alter column operations according to which fields are present. The rules are: * `table` and `column` are always required. * Exactly one of `name`, `type`, `check`, `unique`, `references`, `nullable` must be present. * If `type`, `check`, `unique`, `references` or `nullable` is present, then `up` and `down` must also be present. * If `name` is present then neither `up` or `down` is allowed. This PR updates `schema.json` to capture these dependencies. This change causes churn in the test code as some fields that previously `string` have become `*string`. Fixes #222
- Loading branch information
1 parent
bb79eec
commit 5a6a83a
Showing
12 changed files
with
177 additions
and
141 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
Oops, something went wrong.