use C4::Dates;
use Koha::Database;
use Koha;
+use C4::Koha qw/GetSupportList/;
use MARC::Record;
use MARC::File::XML ( BinaryEncoding => 'utf8' );
SetVersion($DBversion);
}
+$DBversion = "3.19.00.XXX";
+if ( CheckVersion($DBversion) ) {
+ foreach my $format (@{ GetSupportList() }) {
+ $dbh->do(
+ q/INSERT INTO authorised_values (category, authorised_value, lib, lib_opac, imageurl)
+ VALUES (?, ?, ?, ?, ?)/,
+ {},
+ 'SUGGEST_FORMAT', $format->{itemtype}, $format->{description}, $format->{description}, $format->{imageurl}
+ );
+ }
+ print "Upgrade to $DBversion done (Bug 9468: create new SUGGEST_FORMAT authorised_value list)\n";
+ SetVersion($DBversion);
+}
+
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.