Bug 30572: Dbrev for search_marc_to_field.sort
Test plan: Run updatedatabase. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
cf25839860
commit
db10dd522d
1 changed files with 14 additions and 0 deletions
14
installer/data/mysql/atomicupdate/bug_30572.pl
Executable file
14
installer/data/mysql/atomicupdate/bug_30572.pl
Executable file
|
@ -0,0 +1,14 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => 30572,
|
||||
description => "Adjust search_marc_to_field.sort",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
# Do you stuffs here
|
||||
$dbh->do(q|
|
||||
ALTER TABLE search_marc_to_field MODIFY COLUMN sort tinyint(1) DEFAULT 1 NOT NULL COMMENT 'Sort defaults to 1 (Yes) and creates sort fields in the index, 0 (no) will prevent this';
|
||||
|);
|
||||
},
|
||||
};
|
Loading…
Reference in a new issue