Bug 23354: (QA follow-up) Make db update idempotent
authorJosef Moravec <josef.moravec@gmail.com>
Sun, 12 Jan 2020 18:41:30 +0000 (18:41 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 13 Jan 2020 14:06:52 +0000 (14:06 +0000)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

installer/data/mysql/atomicupdate/bug_23354.perl

index 717eaa5..cec1fdc 100644 (file)
@@ -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);
     });