Migration, Createtable(), How To Set Null Columns?

Hello, all!

I want to make migration such way:

   public function up()





                '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?

Thx to all!

Seems what it is the problem of MySQL – it automatically sets all PK columns as NOT NULL.