Browse Source

Bug 26853: DBRev 20.06.00.056

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
20.11.x
Jonathan Druart 4 years ago
parent
commit
507c9a6447
  1. 2
      Koha.pm
  2. 15
      installer/data/mysql/atomicupdate/001-26853-update-import_biblios.perl
  3. 15
      installer/data/mysql/updatedatabase.pl

2
Koha.pm

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "20.06.00.055";
$VERSION = "20.06.00.056";
sub version {
return $VERSION;

15
installer/data/mysql/atomicupdate/001-26853-update-import_biblios.perl

@ -1,15 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do("DROP INDEX title ON import_biblios");
$dbh->do("DROP INDEX isbn ON import_biblios");
$dbh->do("ALTER TABLE import_biblios MODIFY title LONGTEXT");
$dbh->do("ALTER TABLE import_biblios MODIFY author LONGTEXT");
$dbh->do("ALTER TABLE import_biblios MODIFY isbn LONGTEXT");
$dbh->do("ALTER TABLE import_biblios MODIFY issn LONGTEXT");
$dbh->do("CREATE INDEX title ON import_biblios (title(191));");
$dbh->do("CREATE INDEX isbn ON import_biblios (isbn(191));");
# Always end with this (adjust the bug info)
NewVersion( $DBversion, 26853, "Update import_biblios columns and indexes");
}

15
installer/data/mysql/updatedatabase.pl

@ -23146,6 +23146,21 @@ if( CheckVersion( $DBversion ) ) {
}
$DBversion = '20.06.00.056';
if( CheckVersion( $DBversion ) ) {
$dbh->do("DROP INDEX title ON import_biblios");
$dbh->do("DROP INDEX isbn ON import_biblios");
$dbh->do("ALTER TABLE import_biblios MODIFY title LONGTEXT");
$dbh->do("ALTER TABLE import_biblios MODIFY author LONGTEXT");
$dbh->do("ALTER TABLE import_biblios MODIFY isbn LONGTEXT");
$dbh->do("ALTER TABLE import_biblios MODIFY issn LONGTEXT");
$dbh->do("CREATE INDEX title ON import_biblios (title(191));");
$dbh->do("CREATE INDEX isbn ON import_biblios (isbn(191));");
NewVersion( $DBversion, 26853, "Update import_biblios columns and indexes" );
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';

Loading…
Cancel
Save