migrations
migrations copied to clipboard
migration_diff warning `Undefined array key "precision"`
This is a (multiple allowed):
-
[x] bug
-
[ ] enhancement
-
[ ] feature-discussion (RFC)
-
CakePHP Version: 4.4.18
-
Migrations plugin version: 3.9.0
-
Bake plugin version (if relevant): 2.9.3
-
Database server (MySQL): 10.6.12-MariaDB-0ubuntu0.22.04.1
-
PHP Version: 8.1.22
-
Platform / OS: Ubuntu 22.04.3 LTS
What you did
Tried to create a migration file with
bin/cake bake migration_diff ModStCommentsUpdateDeletedBool
I made only one change to the database table.
I changed the datatype from tinyint(4) to tinyint(1).
Before:
After:
Expected Behavior
create migration file without warning
Actual Behavior
displays a warning about Undefined array key "precision"
Despite the warning, the migration was apparently created correctly.
Is this still valid? Looks a bit weird when there is only int involved.
yes it still happens (I'm on cakephp 4.5.1, with migrations 3.9.0)