Difference in table schemas following upgrade produced (possibly) by different alembic
versions
#1010
Unanswered
baileythegreen
asked this question in
Usage Questions
Replies: 1 comment 1 reply
-
that looks like an upgrade from SQLAlchemy 1.3 to 1.4 where the default value for Boolean.create_constraint defaults to False (previously defaulted to True). Locate the Boolean datatypes in your code and set them to either create_constraint=True or False; True would give you the backwards compatibility with 1.3. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have written a wrapper around
alembic
for a tool I maintain that is backed by ansqlite3
database. I am now working on the test suite for this wrapper, but am being stymied by a potential difference in the SQL run in different environments.I have tests passing locally, but not on CircleCI, and have been trying to track down why. It now appears that the issue may be caused by a single line that appears in a
.dump
file when the file is generated on my local computer, but which is missing when the file is generated on CircleCI.The
diff
between the two files is this:The base version of the table that is being upgraded (and where the difference occurs):
and the upgraded version:
There's a
being inserted on my local machine, and I don't understand why.
The actual upgrade I am running with
alembic
is here, and does not altermaxmatch
:The only differences I am aware of are in the
alembic
version being run, and the operating system.sqlite3
alembic
I'm unsure which of this is relevant for Linux, so:
Can this difference be explained by the different
alembic
versions (in which case, maybe I can just pin it)? Does that make sense?Beta Was this translation helpful? Give feedback.
All reactions