You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default width of unsigned columns of unsigned columns does not match metadata in MariaDB and MySQL 5.7. This also applies to Aurora MySQL. A fix has been implemented in #6632 for MySQL but never replicated into aurora-data-api.
Opening this issue for tracking and testing. PR follows.
Expected Behavior
Metadata of an INT UNSIGNED column is detected with a width of 10. Migrations should not detect this as a changed column.
Actual Behavior
Metadata of an INT UNSIGNED column is detected with a width of 11. This causes migrations / synchronize to recreate the column over and over again. All foreign keys pointing to these columns are recreated.
…-data-api (#9478)
* fix: resolve issue with migrations and unsigned int columns in aurora-data-api
Closes: #9477
* refactor: fix prettier
* refactor: fix prettier again
Issue Description
Default width of unsigned columns of unsigned columns does not match metadata in MariaDB and MySQL 5.7. This also applies to Aurora MySQL. A fix has been implemented in #6632 for MySQL but never replicated into aurora-data-api.
Opening this issue for tracking and testing. PR follows.
Expected Behavior
Metadata of an
INT UNSIGNED
column is detected with a width of 10. Migrations should not detect this as a changed column.Actual Behavior
Metadata of an
INT UNSIGNED
column is detected with a width of 11. This causes migrations / synchronize to recreate the column over and over again. All foreign keys pointing to these columns are recreated.Steps to Reproduce
Create an entity with
and have synchronize on. The column will be changed every time.
My Environment
Additional Context
Fix is found, PR follows.
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: