diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20230405123419.php b/src/CoreBundle/Migrations/Schema/V200/Version20230405123419.php index 4b7e7c13de..62d05b3b14 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20230405123419.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20230405123419.php @@ -26,9 +26,6 @@ final class Version20230405123419 extends AbstractMigrationChamilo $this->addSql( 'ALTER TABLE gradebook_category ADD CONSTRAINT FK_96A4C705C33F7837 FOREIGN KEY (document_id) REFERENCES c_document (iid) ON DELETE SET NULL;' ); - $this->addSql( - 'CREATE UNIQUE INDEX UNIQ_96A4C705C33F7837 ON gradebook_category (document_id);' - ); } } @@ -38,9 +35,6 @@ final class Version20230405123419 extends AbstractMigrationChamilo $this->addSql( 'ALTER TABLE gradebook_category DROP CONSTRAINT FK_96A4C705C33F7837;' ); - $this->addSql( - 'ALTER TABLE gradebook_category DROP INDEX UNIQ_96A4C705C33F7837;' - ); } if ($schema->hasTable('c_document')) { $this->addSql(