php-mysql-diff
php-mysql-diff copied to clipboard
#1138 - Invalid use of NULL value
Hi.
I'm using PHP MySQL Diff 1.2.1 (installed from composer). I give the command these two schemas.
from.schema
CREATE TABLE
post(post_datedate NOT NULL COMMENT 'Created At' );
to.schema
CREATE TABLE
post(post_datedate NOT NULL COMMENT 'Created' );
It returns:
ALTER TABLE
postCHANGE COLUMNpost_datepost_datedate NOT NULL COMMENT 'Created' FIRST;
but MySQL(Server version: 5.7.17) says:
#1138 - Invalid use of NULL value
Without 'FIRST', it worked.
ALTER TABLE
postCHANGE COLUMNpost_datepost_datedate NOT NULL COMMENT 'Created';