Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function up(Schema $schema): void |
||
21 | { |
||
22 | // this up() migration is auto-generated, please modify it to your needs |
||
23 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
24 | |||
25 | $this->addSql('UPDATE swp_article SET comments_count = 0 WHERE comments_count IS NULL'); |
||
26 | } |
||
27 | |||
36 |