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
DB version: MariaDB 10.2.7
Laravel version: 5.5
doctrine/dbal version 2.6
issue description:
When use code below to change column name,
Schema::table('my_table', function (Blueprint$table) {
$table->renameColumn('from', 'to');
});
it will cause error: "SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: 'NULL' for column 'c__x5a' at row 1 (SQL: ALTER TABLE xxx CHANGE c__x5 c__x5a DATETIME DEFAULT 'NULL')"
the column's default value is NULL, but was changed to 'NULL' (with single quotes), which caused the error.
The text was updated successfully, but these errors were encountered:
DB version:
MariaDB 10.2.7
Laravel version:
5.5
doctrine/dbal version
2.6
issue description:
When use code below to change column name,
it will cause error:
"SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: 'NULL' for column 'c__x5a' at row 1 (SQL: ALTER TABLE xxx CHANGE c__x5 c__x5a DATETIME DEFAULT 'NULL')"
the column's default value is NULL, but was changed to 'NULL' (with single quotes), which caused the error.
The text was updated successfully, but these errors were encountered: