Renaming project.git_key and project.public_key to project.ssh_private_key and project.ssh_public_key respectively.
This commit is contained in:
parent
3a863e8eed
commit
d639f4a324
6 changed files with 37 additions and 11 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue