| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 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('DROP SEQUENCE user_id_seq CASCADE'); |
||
| 26 | $this->addSql('ALTER TABLE "user" ADD uuid UUID NOT NULL'); |
||
| 27 | $this->addSql('ALTER TABLE "user" DROP id'); |
||
| 28 | $this->addSql('COMMENT ON COLUMN "user".uuid IS \'(DC2Type:uuid)\''); |
||
| 29 | $this->addSql('ALTER TABLE "user" ADD PRIMARY KEY (uuid)'); |
||
| 30 | } |
||
| 45 |