Flask/SQLAlchemy db_migrate failing on large migration using SmallInteger #1079
Unanswered
markgalup
asked this question in
Usage Questions
Replies: 1 comment
-
hey there - you appear to be using sqlalchemy-migrate. that's what's in your stack trace and requirements listing. that package is only nominally supported by the Openstack team (of which I am involved with) and most if not all of Openstack has gotten off of it, so unfortunately I don't know that anyone is able to offer help with it. If you are in an urgent situation, depending on how urgent, you might need to apply the migrations by hand, or otherwise I would prioritize migrating the codebase to actually use Alembic before doing any more schema work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Alembic Team,
I've never run in to an issue with migrations before, but today I encountered many errors. I was added something like 60 columns, and out of those about 10-15 were the type
db.Column(db.SmallInteger, default=False)
Every time one of those rows was processed, the migrate would throw an error. I checked my code for hours, but ultimately found that if I just kept running migrate, it would jump through these issues, and eventually migrated all columns. Traceback and pip freeze are below, and FYIpost_meta.tables['audiobook'].columns['qc_eng_3_complete'].create()
is this type of Columndb.Column(db.SmallInteger, default=False)
:Could you please let me know thoughts here? It's rather urgent, and I'm reluctant to push this to my production server in case there are more significant issues. I appreciate any help very much.
Best,
MG
Beta Was this translation helpful? Give feedback.
All reactions