标签:tab code comm return pre class xtend schema extends
1
php yii migrate/create add_column_rsync_sh_to_conf_table
2我要给 Project 表添加一个字段 rsync_sh,
class m160730_064717_add_column_rsync_sh_to_conf_table extends Migration { public function up() { $this->addColumn(‘project‘, ‘rsync_sh‘, Schema::TYPE_STRING . ‘(200) DEFAULT "" COMMENT "执行sh脚本名称"‘); } public function down() { echo ‘add column rsync_sh success!‘; return false; } }
3
php yii migrate
标签:tab code comm return pre class xtend schema extends
原文地址:http://www.cnblogs.com/liadmin/p/6354233.html