1、REST API application with OAuth2 server on Yii2的地址:https://github.com/ikaras/yii2-oauth2-rest-template
2、运行命令:php application/api/yiic migrate –migrationPath=@vendor/filsh/yii2-oauth2-server/migrations –interactive=0 / 出错:
3、修改文件:/yii2-oauth2-rest-template/vendor/filsh/yii2-oauth2-server/migrations/m140501_075311_add_oauth2_server.php
4、再次运行命令:php application/api/yiic migrate –migrationPath=@vendor/filsh/yii2-oauth2-server/migrations –interactive=0 / ,正常运行:
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/250593.html