Bug 20882: DBRev 19.11.03.001

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
Joy Nelson 2020-03-05 01:19:27 +00:00
parent 853d0ee468
commit eae26a2167
3 changed files with 10 additions and 9 deletions

View File

@ -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 = "19.11.03.000";
$VERSION = "19.11.03.001";
sub version {
return $VERSION;

View File

@ -1,8 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do( "ALTER TABLE items MODIFY COLUMN uri MEDIUMTEXT" );
$dbh->do( "ALTER TABLE deleteditems MODIFY COLUMN uri MEDIUMTEXT" );
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 20882 - items.uri to MEDIUMTEXT)\n";
}

View File

@ -20355,6 +20355,15 @@ if ( CheckVersion($DBversion) ) {
SetVersion ($DBversion);
}
$DBversion = '19.11.03.001';
if( CheckVersion( $DBversion ) ) {
$dbh->do( "ALTER TABLE items MODIFY COLUMN uri MEDIUMTEXT" );
$dbh->do( "ALTER TABLE deleteditems MODIFY COLUMN uri MEDIUMTEXT" );
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 20882 - items.uri to MEDIUMTEXT)\n";
}
# 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/';