| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function up() |
||
| 21 | { |
||
| 22 | $db = $this->db( 'db-locale' ); |
||
| 23 | |||
| 24 | if( !$db->hasColumn( 'mshop_locale_site', 'theme' ) ) { |
||
| 25 | return; |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->info( 'Allow NULL for "theme" column in "mshop_locale_site"', 'v' ); |
||
| 29 | |||
| 30 | $db->update( 'mshop_locale_site', ['theme' => null], ['theme' => ''] ); |
||
| 31 | } |
||
| 33 |