| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function safeDown() |
||
| 25 | { |
||
| 26 | echo "m200818_021303_update_rules_table cannot be reverted.\n"; |
||
| 27 | $this->renameColumn('{{%rule}}', 'then_from_account_id', 'then_account_id'); |
||
| 28 | $this->dropColumn('{{%rule}}', 'then_to_account_id'); |
||
| 29 | $this->addColumn('{{%rule}}', 'then_direction', $this->tinyInteger()->after('then_transaction_type')); |
||
| 30 | $this->renameColumn('{{%rule}}', 'then_transaction_type', 'if_direction'); |
||
| 31 | return true; |
||
| 32 | } |
||
| 49 |