model level booleans coming through autogen should at least be complete #58
Comments
Michael Bayer (@zzzeek) wrote: it means that autogenerate does not render the SQL text of a CheckConstraint just yet. A Boolean may have a CheckConstraint associated with it, if the backend only supports integers. I'm not sure why in your case it is actually spitting the constraint out, though, it should be implicit with the Boolean type, since some backends shouldn't be getting the constraint. |
Changes by Michael Bayer (@zzzeek):
|
Anonymous wrote: Yes, I thought so about. Thanks for the quick reply. |
Michael Bayer (@zzzeek) wrote: this is fixed regarding unnecessary gen of the CheckConstraint associated with Boolean, and also the SQL text of CheckConstraint is rendered for those constraints that are actually present explicitly. [[https://bitbucket.org/zzzeek/alembic/changeset/f579cfeda37763bfe93268a20b534f2f79b4a0dc|f579cfeda37763bfe93268a20b534f2f79b4a0dc]] |
Changes by Michael Bayer (@zzzeek):
|
Migrated issue, originally created by Anonymous
When I make new revision with --autogenerate options for new boolean column I get this migration script
The script is running with error:
What does it mean TODO?
Does alembic support sqlachemy boolean type?
The text was updated successfully, but these errors were encountered: