| Q | A
|------------ | ------
| BC Break | yes
| Version | 2.10.0
The latest change in https://github.com/doctrine/dbal/pull/3668 by @staudenmeir seem to have broken my migrations in MySQL that don't update text columns.
ALTER TABLE user_details
CHANGE vat_amount vat_amount NUMERIC(8, 2) DEFAULT '0' NOT NULL,
CHANGE vat_included vat_included TINYINT (1) DEFAULT '0' NOT NULL
ALTER TABLE user_details
CHANGE vat_amount vat_amount NUMERIC(8, 2) DEFAULT '0' NOT NULL,
CHANGE vat_included vat_included TINYINT (1) CHARACTER SET utf8mb4 DEFAULT '0' NOT NULL COLLATE `utf8mb4_unicode_ci`
In a Laravel 6 project:
Schema::table('user_details', static function (Blueprint $table) {
$table->decimal('vat_amount', 8, 2)->default(0)->change();
$table->boolean('vat_included')->nullable(false)->default(false)->change();
});
duplicate of #3714
Dang, I had this open half an hour ago, went to lunch and submitted when I came back haha.
Haha submitted before lunch :p
s'alright - closing here meanwhile.