最新消息: 新版网站上线了!!!

yii2 windows下使用migrage

修改yii.bat
@echo off
 
rem -------------------------------------------------------------
rem  Yii command line bootstrap script for Windows.
rem
rem  @author Qiang Xue <qiang.xue@gmail.com>
rem  @link http://www.yiiframework.com/
rem  @copyright Copyright (c) 2008 Yii Software LLC
rem  @license http://www.yiiframework.com/license/
rem -------------------------------------------------------------
 
@setlocal
 
set YII_PATH=%~dp0
 
if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\wamp\bin\php\php5.6.16\php.exe
 
"%PHP_COMMAND%" "%YII_PATH%yii" %*
 
@endlocal
保存后
输入命令:yii migrate



 

转载请注明:谷谷点程序 » yii2 windows下使用migrage