onezeronull.com
Create a non-standard primary key in Yii 2 migration
If you need a typical primary key then use $this->primaryKey() in your migration file. You can also use something like $this->primaryKey(2), if you need a bigger (here int(2)) primary key. Bu…