Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function down(Schema $schema): void |
||
27 | { |
||
28 | // this down() migration is auto-generated, please modify it to your needs |
||
29 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
30 | |||
31 | $this->addSql('CREATE SEQUENCE request_metrics_id_seq INCREMENT BY 1 MINVALUE 1 START 1'); |
||
32 | $this->addSql('CREATE TABLE request_metrics ( |
||
33 | id INT NOT NULL, |
||
34 | uri TEXT NOT NULL, |
||
35 | route VARCHAR(255) NOT NULL, |
||
36 | duration INT NOT NULL, |
||
37 | created TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, |
||
38 | PRIMARY KEY(id) |
||
39 | )'); |
||
40 | $this->addSql('ALTER TABLE swp_publish_destination DROP content_lists'); |
||
41 | } |
||
42 | } |
||
43 |