Tagged: primaryKey

PHP Strict Warning 'yii\base\ErrorException' with message 'Declaration of m14050 1_075311_add_oauth2_server::primaryKey() should be compatible with yii\db\Migrat ion::primaryKey($length = NULL)' 0

REST API Application with OAuth2 Server on Yii2, the solution to the error reported in Run Migrations!

浏览量: 2 1. The address of the REST API application with OAuth2 Server on Yii2:https://github.com/ikaras/yii2-oauth2-rest-template 2. Run the command: php application/api/yiic migrate –migrationpath=@vendor/filsh/yii2-oauth2-server/migrations –interactive=0 \ Error: 3. Modify the file: \yii2-oauth2-rest-template\vendor\filsh\yii2-oaut h2-server\migrations\m140501_075311_add_oauth2_server.php 4. Run...