Bug 20882: DBRev 19.05.08.001

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2020-03-09 21:04:00 +00:00
parent 2691b65213
commit 7b3c2d287a
3 changed files with 11 additions and 10 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.05.08.000";
$VERSION = "19.05.08.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

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/USr/bin/perl
# Database Updater
# This script checks for required updates to the database.
@ -18973,6 +18973,15 @@ if ( CheckVersion($DBversion) ) {
SetVersion ($DBversion);
}
$DBversion = "19.05.08.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.