From ade421e89634b99f6e08f4c8c3e98f358c8621d0 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Sun, 12 Jan 2020 18:41:30 +0000 Subject: [PATCH] Bug 23354: (QA follow-up) Make db update idempotent Signed-off-by: Josef Moravec Signed-off-by: Martin Renvoize --- installer/data/mysql/atomicupdate/bug_23354.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/atomicupdate/bug_23354.perl b/installer/data/mysql/atomicupdate/bug_23354.perl index 717eaa5e42..cec1fdc5eb 100644 --- a/installer/data/mysql/atomicupdate/bug_23354.perl +++ b/installer/data/mysql/atomicupdate/bug_23354.perl @@ -6,7 +6,7 @@ if( CheckVersion( $DBversion ) ) { }); $dbh->do(q{ - INSERT INTO account_credit_types ( code, description, can_be_added_manually, is_system ) + INSERT IGNORE INTO account_credit_types ( code, description, can_be_added_manually, is_system ) VALUES ('PURCHASE', 'Purchase', 0, 1); });