Bug 30498: Fix enum search_field.type
Resolves sync issue with upgrades. Test plan: Run dbrev. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
80f7355571
commit
045b467858
2 changed files with 12 additions and 1 deletions
11
installer/data/mysql/atomicupdate/bug_30498.pl
Executable file
11
installer/data/mysql/atomicupdate/bug_30498.pl
Executable file
|
@ -0,0 +1,11 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => 30498,
|
||||
description => "Correct enum search_field.type",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
$dbh->do( q|ALTER TABLE search_field MODIFY COLUMN `type` enum('','string','date','number','boolean','sum','isbn','stdno','year') NOT NULL COMMENT 'what type of data this holds, relevant when storing it in the search engine'| );
|
||||
},
|
||||
};
|
|
@ -4512,7 +4512,7 @@ CREATE TABLE `search_field` (
|
|||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'the name of the field as it will be stored in the search engine',
|
||||
`label` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'the human readable name of the field, for display',
|
||||
`type` enum('','string','date','number','boolean','sum','isbn','stdno') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'what type of data this holds, relevant when storing it in the search engine',
|
||||
`type` enum('','string','date','number','boolean','sum','isbn','stdno','year') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'what type of data this holds, relevant when storing it in the search engine',
|
||||
`weight` decimal(5,2) DEFAULT NULL,
|
||||
`facet_order` tinyint(4) DEFAULT NULL COMMENT 'the order place of the field in facet list if faceted',
|
||||
`staff_client` tinyint(1) NOT NULL DEFAULT 1,
|
||||
|
|
Loading…
Reference in a new issue