From 3ed1515f9730c2cf86637722ec584524dcd5bdf0 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 11 Oct 2019 09:39:26 +0200 Subject: [PATCH] fix(install): remove deletes answers when dropping is_deleted fix #1513 Signed-off-by: Thierry Bugier --- install/upgrade_to_2.7.php | 1 + 1 file changed, 1 insertion(+) diff --git a/install/upgrade_to_2.7.php b/install/upgrade_to_2.7.php index 52b0275aa..ec1940fce 100644 --- a/install/upgrade_to_2.7.php +++ b/install/upgrade_to_2.7.php @@ -105,6 +105,7 @@ public function upgrade(Migration $migration) { $migration->backupTables([$table]); $migration->renameTable('glpi_plugin_formcreator_forms_answers', $table); $migration->migrationOneTable($table); + $DB->delete($table, ['is_deleted' => '1']); $migration->dropField($table, 'is_deleted'); $table = 'glpi_plugin_formcreator_answers'; $migration->changeField(