| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function down(Schema $schema) |
||
| 30 | { |
||
| 31 | // this down() migration is auto-generated, please modify it to your needs |
||
| 32 | $this->abortIf( |
||
| 33 | $this->connection->getDatabasePlatform()->getName() != 'mysql', |
||
| 34 | 'Migration can only be executed safely on \'mysql\'.' |
||
| 35 | ); |
||
| 36 | |||
| 37 | $this->addSql('ALTER TABLE event_stream DROP PRIMARY KEY'); |
||
| 38 | $this->addSql("ALTER TABLE event_stream ADD UNIQUE INDEX unique_uuid_playhead (uuid, playhead)"); |
||
| 39 | $this->addSql('ALTER TABLE event_stream ADD CONSTRAINT pk_event_stream_uuid PRIMARY KEY (uuid)'); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |