Skip to content

Commit 3874c01

Browse files
committed
Drop unused index deleted_at from migration
1 parent 4a44cf8 commit 3874c01

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

database/DoctrineMigrations/Version20220425090852.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public function up(Schema $schema) : void
1717

1818
$this->addSql('ALTER TABLE consent DROP PRIMARY KEY');
1919
$this->addSql('ALTER TABLE consent ADD deleted_at DATETIME NOT NULL DEFAULT "0000-00-00 00:00:00"');
20-
$this->addSql('CREATE INDEX deleted_at ON consent (deleted_at)');
2120
$this->addSql('ALTER TABLE consent ADD PRIMARY KEY (hashed_user_id, service_id, deleted_at)');
2221
}
2322

@@ -26,7 +25,6 @@ public function down(Schema $schema) : void
2625
// this down() migration is auto-generated, please modify it to your needs
2726
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
2827

29-
$this->addSql('DROP INDEX deleted_at ON consent');
3028
$this->addSql('ALTER TABLE consent DROP PRIMARY KEY');
3129
$this->addSql('ALTER TABLE consent DROP deleted_at');
3230
$this->addSql('ALTER TABLE consent ADD PRIMARY KEY (hashed_user_id, service_id)');

0 commit comments

Comments
 (0)