| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class m200818_021303_update_rules_table extends Migration |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | public function safeUp() |
||
| 14 | { |
||
| 15 | $this->renameColumn('{{%rule}}', 'then_account_id', 'then_from_account_id'); |
||
| 16 | $this->addColumn('{{%rule}}', 'then_to_account_id', $this->integer()->after('then_from_account_id')); |
||
| 17 | $this->renameColumn('{{%rule}}', 'if_direction', 'then_transaction_type'); |
||
| 18 | $this->dropColumn('{{%rule}}', 'then_direction'); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | public function safeDown() |
||
| 32 | } |
||
| 33 | |||
| 49 |