Skip to content

Commit 1093948

Browse files
Merge pull request #5782 from christianbeeznest/fixes-updates50
Migration: Fix issue with foreign key and index removal
2 parents e6188e7 + 8e03a16 commit 1093948

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CoreBundle/Migrations/Schema/V200/Version20240811221980.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function up(Schema $schema): void
5050
$this->addSql('ALTER TABLE justification_document_rel_users CHANGE justification_document_id justification_document_id INT DEFAULT NULL;');
5151
}
5252

53+
$this->addSql('ALTER TABLE lti_external_tool DROP FOREIGN KEY IF EXISTS FK_DB0E04E41BAD783F;');
5354
$this->addSql('ALTER TABLE lti_external_tool DROP INDEX IF EXISTS FK_DB0E04E41BAD783F;');
5455
$table = $schema->getTable('lti_external_tool');
5556
if (false === $table->hasIndex('UNIQ_DB0E04E41BAD783F')) {

0 commit comments

Comments
 (0)