In migration if I do:
$this->alterColumn('table','column',$this->integer()->null());
IMHO the column should be created without error with:
ALTER TABLE [table] ALTER COLUMN [column] integer NULL
SYNTAX ERROR:
ALTER TABLE [table] ALTER COLUMN [column] integer NULL DEFAULT NULL
The DEFAULT NULL should not be there!!!
Might be related to #12077 and #11158
I temporarily solve this by doing:
$this->alterColumn('table','column',$this->integer().' NULL');
which DBMS is that? MySQL?
MSSQL as said in the title.
I also have this issue on MySQL:
access_token varchar(100) NULL DEFAULT NULL
Most helpful comment
MSSQL as said in the title.