| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function up(Schema $schema): void |
||
| 16 | { |
||
| 17 | // this up() migration is auto-generated, please modify it to your needs |
||
| 18 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
| 19 | |||
| 20 | $this->addSql('DELETE FROM swp_article_media USING swp_slideshow_item WHERE swp_article_media.id = swp_slideshow_item.article_media_id AND swp_slideshow_item.deleted_at IS NOT NULL'); |
||
| 21 | $this->addSql('DELETE FROM swp_slideshow_item WHERE deleted_at IS NOT NULL'); |
||
| 22 | $this->addSql('DELETE FROM swp_slideshow WHERE deleted_at IS NOT NULL'); |
||
| 23 | $this->addSql('ALTER TABLE swp_slideshow_item DROP deleted_at'); |
||
| 24 | $this->addSql('ALTER TABLE swp_slideshow DROP deleted_at'); |
||
| 25 | } |
||
| 26 | |||
| 36 |