Bug 16573: Update DB rev (3.22.09.002)

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Frédéric Demians 2016-08-01 09:54:30 +00:00 committed by Julian Maurice
parent 8af23fbd36
commit 0d1853382b
3 changed files with 11 additions and 2 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 = "3.22.09.001";
$VERSION = "3.22.09.002";
sub version {
return $VERSION;

View File

@ -1 +0,0 @@
ALTER TABLE virtualshelves MODIFY COLUMN created_on DATETIME not NULL;

View File

@ -11679,6 +11679,16 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = '3.22.09.002';
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
ALTER TABLE virtualshelves MODIFY COLUMN created_on DATETIME not NULL;
});
print "Upgrade to $DBversion done (Bug 16573 - Web installer fails to load structure and sample data on MySQL 5.7)\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.