Renaming project.git_key and project.public_key to project.ssh_private_key and project.ssh_public_key respectively.

This commit is contained in:
Dan Cryer 2014-05-13 15:15:33 +00:00
commit d639f4a324
6 changed files with 37 additions and 11 deletions

View file

@ -0,0 +1,26 @@
<?php
use Phinx\Migration\AbstractMigration;
class ChangeBuildKeysMigration extends AbstractMigration
{
/**
* Migrate Up.
*/
public function up()
{
$project = $this->table('project');
$project->renameColumn('git_key', 'ssh_private_key');
$project->renameColumn('public_key', 'ssh_public_key');
}
/**
* Migrate Down.
*/
public function down()
{
$project = $this->table('project');
$project->renameColumn('ssh_private_key', 'git_key');
$project->renameColumn('ssh_public_key', 'public_key');
}
}