Renamed projects types and build classes: 'remote'/RemoteGitBuild to

'git'/GitBuild, MercurialBuild to HgBuild, SubversionBuild to SvnBuild,
'bitbuckethg' to 'bitbucket-hg'.
This commit is contained in:
Dmitry Khomutov 2018-02-28 10:00:10 +07:00
commit 58f1004652
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
10 changed files with 41 additions and 23 deletions

View file

@ -0,0 +1,18 @@
<?php
use Phinx\Migration\AbstractMigration;
class RenamedBuildTypes extends AbstractMigration
{
public function up()
{
$this->execute("UPDATE project SET type = 'git' WHERE type = 'remote'");
$this->execute("UPDATE project SET type = 'bitbucket-hg' WHERE type = 'bitbuckethg'");
}
public function down()
{
$this->execute("UPDATE project SET type = 'remote' WHERE type = 'git'");
$this->execute("UPDATE project SET type = 'bitbuckethg' WHERE type = 'bitbucket-hg'");
}
}