| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up(Schema $schema) |
||
| 17 | { |
||
| 18 | // this up() migration is auto-generated, please modify it to your needs |
||
| 19 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
| 20 | |||
| 21 | $this->addSql('ALTER TABLE swp_rule ADD description VARCHAR(255) DEFAULT NULL'); |
||
| 22 | $this->addSql('ALTER TABLE swp_rule ADD name VARCHAR(255) DEFAULT NULL'); |
||
| 23 | $this->addSql('UPDATE swp_article SET package_id = (SELECT p.id FROM swp_package AS p WHERE p.guid = code ORDER BY p.id DESC LIMIT 1)'); |
||
| 24 | $this->addSql('delete from swp_article where is_publishable = false and package_id = (select p.id from swp_package as p where p.guid = code order by p.id desc limit 1)'); |
||
| 25 | $this->addSql('update swp_package set status = \'published\' where (select count(*) from swp_article as a where a.package_id = id) > 0'); |
||
| 26 | } |
||
| 27 | |||
| 40 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.