From ca21147f8b6d0910b7100e3c788daf555bcf0651 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 --- 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); }); -- 2.11.0