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
When using pw_migrate with the --auto flag to add a new CharField with a default value to a table it produces code like this:
--auto
@migrator.create_model class Color(pw.Model): id = pw.AutoField() name = pw.CharField(constraints=[SQL("DEFAULT New Color")], max_length=255)
The last line will lead to an Operational error because there are quotation marks missing around the default values.
Operational error
The text was updated successfully, but these errors were encountered:
a7159a9
Successfully merging a pull request may close this issue.
Error description
When using pw_migrate with the
--auto
flag to add a new CharField with a default value to a table it produces code like this:The last line will lead to an
Operational error
because there are quotation marks missing around the default values.System configuration
The text was updated successfully, but these errors were encountered: