Bug 10132: DBRev 17.05.00.007

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-09-19 11:46:51 -03:00
parent 80c749df80
commit 0f9dce409f
3 changed files with 11 additions and 11 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 = "17.06.00.006";
$VERSION = "17.06.00.007";
sub version {
return $VERSION;

View File

@ -1,10 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'branches', 'marcorgcode' ) ) {
$dbh->do( "ALTER TABLE branches ADD COLUMN marcorgcode VARCHAR(16) default NULL AFTER geolocation" );
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 10132 - MARCOrgCode on branch level)\n";
}

View File

@ -14627,6 +14627,16 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 18811 - Visibility settings inconsistent between framework and authority editor)\n";
}
$DBversion = '17.06.00.007';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'branches', 'marcorgcode' ) ) {
$dbh->do( "ALTER TABLE branches ADD COLUMN marcorgcode VARCHAR(16) default NULL AFTER geolocation" );
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 10132 - MARCOrgCode on branch level (branches.marcorgcode))\n";
}
# 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.