From 0e8a2d58af2975a3dbb96c1fc0ccb337d5a520dc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 14 Jun 2021 14:34:48 +0000 Subject: [PATCH] Bug 28489: DBRev 21.06.00.001 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../atomicupdate/sessions-from-longtext-to-longblob.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 8 ++++++++ 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/sessions-from-longtext-to-longblob.perl diff --git a/Koha.pm b/Koha.pm index 899b02fe04..862f24e27f 100644 --- a/Koha.pm +++ b/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 = "21.06.00.000"; +$VERSION = "21.06.00.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/sessions-from-longtext-to-longblob.perl b/installer/data/mysql/atomicupdate/sessions-from-longtext-to-longblob.perl deleted file mode 100644 index 0ddca85b5a..0000000000 --- a/installer/data/mysql/atomicupdate/sessions-from-longtext-to-longblob.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; -if ( CheckVersion($DBversion) ) { - $dbh->do('DELETE FROM sessions'); - $dbh->do('ALTER TABLE sessions MODIFY a_session LONGBLOB NOT NULL'); - - NewVersion( $DBversion, '28489', - 'Modify sessions.a_session from longtext to longblob' ); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index bf3f5c72db..6a68c11719 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -24284,6 +24284,14 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, "", ["🎵 Run, rabbit run. 🎶", "Dig that hole, forget the sun,", "And when at last the work is done", "Don't sit down it's time to dig another one."] ); } +$DBversion = '21.06.00.001'; +if ( CheckVersion($DBversion) ) { + $dbh->do('DELETE FROM sessions'); + $dbh->do('ALTER TABLE sessions MODIFY a_session LONGBLOB NOT NULL'); + + NewVersion( $DBversion, '28489', 'Modify sessions.a_session from longtext to longblob' ); +} + # 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/'; -- 2.39.2