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
Length of the primary key was dropped. Which resulted in an incorrect DB.
This is critical when using foreign keys in database: a mismatch of column lengths might cause a later created migrations to fail.
bake migraion_diff works and successfulu detects changes in primary column lengths. So it's just for migration_snapshot
This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
CakePHP Version: 3.6.2
Migrations plugin version: 1.8.1
Bake plugin version (if relevant): 1.7.3
Database server (MySQL, SQLite, Postgres): MySQL 5.7, 8.0
PHP Version: PHP 7.2.3
Platform / OS: Ubuntu 18.04
What you did
We have the following DB.
After running
bin/cake bake migration_snapshot TestLength
Init I get:Length of the primary key was dropped. Which resulted in an incorrect DB.
This is critical when using foreign keys in database: a mismatch of column lengths might cause a later created migrations to fail.
bake migraion_diff
works and successfulu detects changes in primary column lengths. So it's just formigration_snapshot
Might be related to #331
The text was updated successfully, but these errors were encountered: