From 27d7e158565b6c6bfaeacbc896732219420f9d74 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 28 Feb 2020 10:26:27 +1100 Subject: [PATCH] [NFC] Use insert ignore for inserts into civicrm_extension to stop warnings on duplicate entry for sequential credit notes extension --- xml/templates/civicrm_data.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/templates/civicrm_data.tpl b/xml/templates/civicrm_data.tpl index d75bd94866..0955deee2d 100644 --- a/xml/templates/civicrm_data.tpl +++ b/xml/templates/civicrm_data.tpl @@ -1780,4 +1780,4 @@ VALUES -- Note this is a limited interim technique for installing core extensions - the goal is that core extensions would be installed -- in the setup routine based on their tags & using the standard extension install api. -- do not try this at home folks. -INSERT INTO civicrm_extension (type, full_name, name, label, file, is_active) VALUES ('module', 'sequentialcreditnotes', 'Sequential credit notes', 'Sequential credit notes', 'sequentialcreditnotes', 1); +INSERT IGNORE INTO civicrm_extension (type, full_name, name, label, file, is_active) VALUES ('module', 'sequentialcreditnotes', 'Sequential credit notes', 'Sequential credit notes', 'sequentialcreditnotes', 1); -- 2.25.1