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:
parent
d0c69d2ef0
commit
58f1004652
10 changed files with 41 additions and 23 deletions
|
|
@ -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'");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue