We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CREATE TABLE public.test ( "col" boolean DEFAULT true );
CREATE TABLE test ( "col" BOOLEAN DEFAULT FALSE );
Fail with unsupported default value type (valueType: '7').
unsupported default value type (valueType: '7')
Note that migrating from false → true also fails with the same error.
false
true
Successfully migrate the schema.
Using string representations for the boolean works as expected:
CREATE TABLE test ( "col" BOOLEAN DEFAULT 'false' -- or 'no', 'off', '0' );
ref: https://www.postgresql.org/docs/14/datatype-boolean.html
The text was updated successfully, but these errors were encountered:
0aa2b62
Thanks for the report. Fixed in v0.11.16.
Sorry, something went wrong.
No branches or pull requests
--export output
Input SQL
Current output
Fail with
unsupported default value type (valueType: '7')
.Note that migrating from
false
→true
also fails with the same error.Expected output
Successfully migrate the schema.
Workaround
Using string representations for the boolean works as expected:
ref: https://www.postgresql.org/docs/14/datatype-boolean.html
The text was updated successfully, but these errors were encountered: