| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up(Schema $schema) |
||
| 15 | { |
||
| 16 | // this up() migration is auto-generated, please modify it to your needs |
||
| 17 | $this->abortIf( |
||
| 18 | $this->connection->getDatabasePlatform()->getName() != 'mysql', |
||
| 19 | 'Migration can only be executed safely on \'mysql\'.' |
||
| 20 | ); |
||
| 21 | |||
| 22 | $this->addSql('ALTER TABLE event_stream DROP PRIMARY KEY'); |
||
| 23 | $this->addSql('ALTER TABLE event_stream DROP INDEX unique_uuid_playhead'); |
||
| 24 | $this->addSql( |
||
| 25 | 'ALTER TABLE event_stream ADD CONSTRAINT pk_event_stream_uuid_playhead PRIMARY KEY (uuid, playhead)' |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 42 |