本文整理汇总了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;
}