| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function down(Schema $schema): void |
||
| 33 | { |
||
| 34 | // this down() migration is auto-generated, please modify it to your needs |
||
| 35 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
||
| 36 | |||
| 37 | $this->addSql('CREATE SCHEMA public'); |
||
| 38 | $this->addSql('CREATE SEQUENCE user_id_seq INCREMENT BY 1 MINVALUE 1 START 1'); |
||
| 39 | $this->addSql('DROP INDEX user_pkey'); |
||
| 40 | $this->addSql('ALTER TABLE "user" ADD id INT NOT NULL'); |
||
| 41 | $this->addSql('ALTER TABLE "user" DROP uuid'); |
||
| 42 | $this->addSql('ALTER TABLE "user" ADD PRIMARY KEY (id)'); |
||
| 43 | } |
||
| 45 |