File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
database/DoctrineMigrations Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff 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) ' );
You can’t perform that action at this time.
0 commit comments