fix migration

parent 7ea1be50
...@@ -8,16 +8,6 @@ class m160310_063328_fix_support extends Migration ...@@ -8,16 +8,6 @@ class m160310_063328_fix_support extends Migration
// Use safeUp/safeDown to run migration code within a transaction // Use safeUp/safeDown to run migration code within a transaction
public function safeUp() public function safeUp()
{ {
$this->insert('settings', [
'module_id' => 'support',
'code' => 'redmine-key',
'name' => 'Redmine Api Key',
'value' => 'bac5a4f334595be4ce4962e6428035041f47f569',
'element' => 'text',
'hidden' => 0,
'description' => 'Redmine Api Key',
]);
$this->insert('settings', [ $this->insert('settings', [
'module_id' => 'support', 'module_id' => 'support',
'code' => 'redmine-url', 'code' => 'redmine-url',
...@@ -31,7 +21,6 @@ class m160310_063328_fix_support extends Migration ...@@ -31,7 +21,6 @@ class m160310_063328_fix_support extends Migration
public function safeDown() public function safeDown()
{ {
$this->delete('settings', ['code' => 'redmine-key']);
$this->delete('settings', ['code' => 'redmine-url']); $this->delete('settings', ['code' => 'redmine-url']);
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment