From 09f21d6420e55c05396192d7b6f7adb8e9a775bc Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 11 Jan 2021 11:48:50 +0100 Subject: [PATCH] Update tag_ident index when removing assignable column Signed-off-by: Vincent Petry --- core/Migrations/Version21000Date20201120141228.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Migrations/Version21000Date20201120141228.php b/core/Migrations/Version21000Date20201120141228.php index 7f3eda2309bad..bc15801774346 100644 --- a/core/Migrations/Version21000Date20201120141228.php +++ b/core/Migrations/Version21000Date20201120141228.php @@ -63,6 +63,8 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt if ($schema->hasTable('systemtag')) { $table = $schema->getTable('systemtag'); if ($table->hasColumn('assignable')) { + $table->dropIndex('tag_ident'); + $table->addUniqueIndex(['name', 'visibility', 'editable'], 'tag_ident'); $table->dropColumn('assignable'); } }