-
-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
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
Regression: SQLite fails to create create AUTO_INCREMENT big_integer #1973
Comments
Remark: The code works fine for PostgreSQL, it only affects SQLite. |
Thank you for your report. Yes I am aware, and is tracked in SeaQL/sea-query#689 |
Thanks for the feedback. I looked here for an existing issue and didn't find one. Haven't though of looking in the sea-query repo. As the issue is already tracked, I'll close this one as a duplicate. |
No worries! |
Hey guys, any updates on this? |
You can try |
Thanks for the quick reply! Unfortunately, it's the same for the latest |
the issue still exists in |
Description
Upgrade from
sea-orm-migration = 0.11.3
tosea-orm-migrations = 0.12.6
breaks SQLite table creation withAUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY
Steps to Reproduce
big_integer
as the index.Everything works fine and the table is created correctly.
Upgrade sea-orm / sea-orm-migrations to
0.12.6
and run the code above again. Now, the table creation breaks withAUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY
.Expected Behavior
SQLite table is created with a
big_integer
index.Actual Behavior
Table creation fails with
AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY
.Reproduces How Often
Always
Workarounds
Instead of
big_integer
,integer
can be used and the code works again. Unfortunatly that is not an option as the all database table are already created withbig_integer
, such that a migration tointeger
would break all of the production databases.Versions
Upgrade from
0.11.3
to0.12.6
The text was updated successfully, but these errors were encountered: