Skip to content

migration_diff warning Undefined array key "precision" #649

Open
@Rakasch

Description

@Rakasch

This is a (multiple allowed):

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions