Bug 25375: New atomicupdate syntax

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomas Cohen Arazi 2022-09-23 09:03:50 -03:00
parent 471facdf26
commit c86d7f632f
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 15 additions and 9 deletions

View File

@ -1,9 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
$dbh->do(qq{
INSERT IGNORE INTO search_field (name, label, type)
VALUES ('available', 'available', 'boolean')
});
NewVersion( $DBversion, '25735', "Add Elasticsearch field 'available'");
}

View File

@ -0,0 +1,15 @@
use Modern::Perl;
return {
bug_number => "25735",
description => "Add Elasticsearch field 'available'",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(qq{
INSERT IGNORE INTO search_field (name, label, type)
VALUES ('available', 'available', 'boolean')
});
},
};