migrations icon indicating copy to clipboard operation
migrations copied to clipboard

migration_diff warning `Undefined array key "precision"`

Open Rakasch opened this issue 2 years ago • 2 comments

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: image After: image

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. image

image

Rakasch avatar Oct 13 '23 09:10 Rakasch

Is this still valid? Looks a bit weird when there is only int involved.

dereuromark avatar Dec 08 '23 19:12 dereuromark

yes it still happens (I'm on cakephp 4.5.1, with migrations 3.9.0) image

Rakasch avatar Feb 22 '24 12:02 Rakasch