diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index 688c65ca1f..68cdfecd2b 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -99,8 +99,8 @@ CREATE TABLE `authorised_values` ( -- stores values for authorized values catego `id` int(11) NOT NULL auto_increment, -- unique key, used to identify the authorized value `category` varchar(10) NOT NULL default '', -- key used to identify the authorized value category `authorised_value` varchar(80) NOT NULL default '', -- code use to identify the authorized value - `lib` varchar(80) default NULL, -- authorized value description as printed in the staff client - `lib_opac` VARCHAR(80) default NULL, -- authorized value description as printed in the OPAC + `lib` varchar(200) default NULL, -- authorized value description as printed in the staff client + `lib_opac` varchar(200) default NULL, -- authorized value description as printed in the OPAC `imageurl` varchar(200) default NULL, -- authorized value URL PRIMARY KEY (`id`), KEY `name` (`category`), diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 7fc77de63a..574f1bef4e 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -5807,6 +5807,15 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.09.00.XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("ALTER TABLE authorised_values MODIFY lib varchar(200)"); + $dbh->do("ALTER TABLE authorised_values MODIFY lib_opac varchar(200)"); + + print "Upgrade to $DBversion done (Raise the length of Authorised Values descriptions)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 TableExists($table) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index 3af0724e95..4acaac3fba 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -72,11 +72,11 @@