本文整理匯總了PHP中app\models\Task::tableName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Task::tableName方法的具體用法?PHP Task::tableName怎麽用?PHP Task::tableName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類app\models\Task
的用法示例。
在下文中一共展示了Task::tableName方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: down
public function down()
{
$this->dropColumn(Project::tableName(), 'keep_version_num');
$this->dropColumn(Task::tableName(), 'enable_rollback');
echo "m151027_063246_keep_version_num was reverted.\n";
return true;
}
示例2: down
public function down()
{
$this->dropColumn(Project::tableName(), 'repo_username');
$this->dropColumn(Project::tableName(), 'repo_password');
$this->renameColumn(Project::tableName(), 'repo_url', 'git_url');
$this->renameColumn(Project::tableName(), 'repo_mode', 'git_type');
$this->dropColumn(Project::tableName(), 'repo_type');
$this->dropColumn(Task::tableName(), 'file_list');
echo "m151018_032238_support_svn be reverted.\n";
return true;
}
示例3: up
public function up()
{
$this->dropColumn(Project::tableName(), 'conf');
$this->addColumn(Project::tableName(), 'git_url', Schema::TYPE_STRING . '(200) DEFAULT "" COMMENT "git地址"');
$this->addColumn(Project::tableName(), 'deploy_from', Schema::TYPE_STRING . '(200) NOT NULL COMMENT "宿主機存放clone出來的文件"');
$this->addColumn(Project::tableName(), 'excludes', Schema::TYPE_STRING . '(500) DEFAULT "" COMMENT "要排除的文件"');
$this->addColumn(Project::tableName(), 'release_user', Schema::TYPE_STRING . '(50) NOT NULL COMMENT "目標機器用戶"');
$this->addColumn(Project::tableName(), 'release_to', Schema::TYPE_STRING . '(200) NOT NULL COMMENT "目標機器的目錄,相當於nginx的root,可直接web訪問"');
$this->addColumn(Project::tableName(), 'release_library', Schema::TYPE_STRING . '(200) NOT NULL COMMENT "目標機器版本發布庫"');
$this->addColumn(Project::tableName(), 'hosts', Schema::TYPE_STRING . '(500) NOT NULL COMMENT "目標機器列表"');
$this->addColumn(Project::tableName(), 'pre_deploy', Schema::TYPE_STRING . '(500) DEFAULT "" COMMENT "部署前置任務"');
$this->addColumn(Project::tableName(), 'post_deploy', Schema::TYPE_STRING . '(500) DEFAULT "" COMMENT "同步之前任務"');
$this->addColumn(Project::tableName(), 'post_release', Schema::TYPE_STRING . '(500) DEFAULT "" COMMENT "同步之後任務"');
$this->addColumn(Project::tableName(), 'git_type', Schema::TYPE_STRING . '(50) DEFAULT "branch" COMMENT "兩種上線方式,分支、tag"');
$this->addColumn(Project::tableName(), 'audit', Schema::TYPE_SMALLINT . '(1) DEFAULT 0 COMMENT "是否需要審核任務0不需要,1需要"');
$this->dropColumn(Project::tableName(), 'created_at');
$this->addColumn(Project::tableName(), 'created_at', Schema::TYPE_DATETIME . ' COMMENT "創建時間" after audit');
$this->addColumn(Project::tableName(), 'updated_at', Schema::TYPE_DATETIME . ' COMMENT "修改時間"');
$this->dropColumn(Task::tableName(), 'created_at');
$this->addColumn(Task::tableName(), 'created_at', Schema::TYPE_DATETIME . ' COMMENT "創建時間"');
$this->addColumn(Task::tableName(), 'updated_at', Schema::TYPE_DATETIME . ' COMMENT "修改時間"');
}
示例4: down
public function down()
{
$this->dropColumn(\app\models\Task::tableName(), 'branch');
echo "m151012_135612_task_add_branch be reverted.\n";
return true;
}
示例5: down
public function down()
{
$this->dropColumn(Task::tableName(), 'file_transmission_mode');
echo "m160420_015223_add_file_transmission_mode was reverted.\n";
return true;
}