From 7acabcc2d4cf7331e7be022f154f29aa26f20187 Mon Sep 17 00:00:00 2001
From: lvessiller <lvessiller@open-dsi.fr>
Date: Fri, 15 Oct 2021 12:10:27 +0200
Subject: [PATCH] FIX old index name

---
 lib/Migration/Version030102Date20210812020000.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Migration/Version030102Date20210812020000.php b/lib/Migration/Version030102Date20210812020000.php
index 8a7db13..4c06b11 100644
--- a/lib/Migration/Version030102Date20210812020000.php
+++ b/lib/Migration/Version030102Date20210812020000.php
@@ -33,6 +33,7 @@ class Version030102Date20210812020000 extends SimpleMigrationStep {
 
         // old indexes remain in SITIV database
         if ($table->hasIndex('dematpayslip_archive_pastell_id_document')) {
+            $table->dropIndex('dematpayslip_archive_pastell_id_document');
             $table->addUniqueIndex(['pastell_id_document'], 'demat_archive_pastell_id_doc');
         }
         if ($table->hasIndex('dematpayslip_archive_id_user')) {
-- 
GitLab