From 523a89451354e7636c8e093beb6172fb4d3b2660 Mon Sep 17 00:00:00 2001 From: metas-rc Date: Mon, 19 Jul 2021 21:10:02 +0300 Subject: [PATCH] drop index only if exists https://github.com/metasfresh/metasfresh/issues/11508 --- .../postgresql/system/5598871_sys_gh11508_DropPaymentIndex.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/de.metas.payment.esr/src/main/sql/postgresql/system/5598871_sys_gh11508_DropPaymentIndex.sql b/backend/de.metas.payment.esr/src/main/sql/postgresql/system/5598871_sys_gh11508_DropPaymentIndex.sql index da30d58c71c..1e0901cf754 100644 --- a/backend/de.metas.payment.esr/src/main/sql/postgresql/system/5598871_sys_gh11508_DropPaymentIndex.sql +++ b/backend/de.metas.payment.esr/src/main/sql/postgresql/system/5598871_sys_gh11508_DropPaymentIndex.sql @@ -1,5 +1,5 @@ -- since we can have a duplicate payment set, we need to drop the index -drop index esr_importline_payment_uq; +drop index if exists esr_importline_payment_uq; UPDATE ad_column SET readonlylogic = '@ESR_Payment_Action@ = F | @ESR_Payment_Action@ = C | (@C_Payment_ID@ < 1 & @ESR_Payment_Action@ != P) | @Processed@ = Y | (@ESR_Payment_Action@ = A & @ESR_Invoice_Openamt@ = 0) ' WHERE ad_column_id = 548689; \ No newline at end of file