Add support for Alembic migrations to detect column size changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
As part of implementing https:/
The Lazy Web told me about a fix for this over at http://
I think we should probably do something like this for the default configuration for Ironic. I've used this fix locally to generate https:/
op.
op.
op.
We need to investigate whether these additional changes are legit, and we need to decide whether we want this enabled for all auto-generate alembic migration changes.
I am a little bit wary of enabling this because of this statement in the documentation, found at:
http:// alembic. readthedocs. org/en/ latest/ api.html# alembic. environment. EnvironmentCont ext.configure. params. compare_ type
"Set to True to turn on default type comparison, which has varied accuracy depending on backend."
The whole "varied accuracy" thing scares me.
As for the changes to the other columns (online, console_enabled, maintenance), they are already defined as BOOLEAN in the models.py file, but that is an alias in MySQL for TINYINT. So these may be no-op changes, but strange that alembic doesn't recognize that.