In general my recommendation for primary keys is if there is a type specification, the primary key is of the specified type. Thus eliminating the need of bigPrimaryKye which can be declared using $this->bigInteger()->primaryKey(). If the type is not specified the primary key defaults to integer as is now.
There is already core code in Yii2 which can take advantage of this - rbac migrations
This support should also be implemented and in "migration generation" for example
This is not an issue but a suggestion
It would be great if non integer primary keys can be created in this way
Instead of this:
In general my recommendation for primary keys is if there is a type specification, the primary key is of the specified type. Thus eliminating the need of bigPrimaryKye which can be declared using $this->bigInteger()->primaryKey(). If the type is not specified the primary key defaults to integer as is now.
There is already core code in Yii2 which can take advantage of this - rbac migrations
This support should also be implemented and in "migration generation" for example