Hello, all!
I want to make migration such way:
public function up()
{
$this->createTable(
'table_name',
[
'column1' => 'INT(11) NOT NULL',
'column2' => 'INT(11)', // <====================== pls, look at this line
'PRIMARY KEY (column1, column2)',
]
);
}
But get both columns as NOT NULL.
Try to set such way:
'column2' => 'INT(11) NULL DEFAULT NULL'
Got NOT NULL again.
How to let column be NULL?