| Conditions | 3 |
| Paths | 4 |
| Total Lines | 20 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function safeUp() |
||
| 16 | { |
||
| 17 | // https://github.com/yiisoft/yii2/issues/4492 |
||
| 18 | if ($this->db->getIsPgsql()) { |
||
| 19 | $this->alterColumn( |
||
| 20 | '{{%seomatic_metabundles}}', |
||
| 21 | 'sourceHandle', |
||
| 22 | $this->string() |
||
| 23 | ); |
||
| 24 | $this->alterColumn( |
||
| 25 | '{{%seomatic_metabundles}}', |
||
| 26 | 'sourceHandle', |
||
| 27 | "SET DEFAULT ''" |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | if ($this->db->getIsMysql()) { |
||
| 31 | $this->alterColumn( |
||
| 32 | '{{%seomatic_metabundles}}', |
||
| 33 | 'sourceHandle', |
||
| 34 | $this->string()->defaultValue('') |
||
| 35 | ); |
||
| 48 |