| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | public function initInverter(\execut\yii\migration\Inverter $i) |
||
| 7 | { |
||
| 8 | $i->table('import_settings') |
||
| 9 | ->alterColumnDropDefault('ftp_port', 21) |
||
| 10 | ->alterColumnDropNotNull('ftp_port') |
||
| 11 | ->update(['ftp_port' => 21], 'ftp_port is null') |
||
| 12 | ->alterColumnDropDefault('ftp_timeout', 60) |
||
| 13 | ->alterColumnDropNotNull('ftp_timeout') |
||
| 14 | ->update(['ftp_timeout' => 60], 'ftp_timeout is null') |
||
| 15 | ->alterColumnDropDefault('site_auth_url', '\'/\'') |
||
| 16 | ->alterColumnDropNotNull('site_auth_url') |
||
| 17 | ->update(['site_auth_url' => ''], 'site_auth_url is null') |
||
| 18 | ->alterColumnDropDefault('site_auth_method', '\'post\'') |
||
| 19 | ->alterColumnDropNotNull('site_auth_method') |
||
| 20 | ->update(['site_auth_method' => ''], 'site_auth_method is null') |
||
| 21 | ; |
||
| 24 |