Add "boolean" as an alias for "bool" #256
Merged
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.
Postgres returns
udt_type
"bool" for columns of type "boolean"User Case Description
Otherwise migrator detects a type mismatch and attempts to needlessly change the column type. This is normally not an issue. However, it fails when there's a view that depends on that column:
ALTER TABLE "records" ALTER COLUMN "deleted" TYPE boolean USING "deleted"::boolean: ERROR: cannot alter type of a column used by a view or rule (SQLSTATE 0A000)
This in turn fails the whole auto-migration.