Browse Source

Bug 9701: DBRev 17.12.00.028

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Jonathan Druart 4 years ago
parent
commit
aa4d328a3b
  1. 2
      Koha.pm
  2. 3
      installer/data/mysql/atomicupdate/bug_9701-add_default_indicators.sql
  3. 18
      installer/data/mysql/updatedatabase.pl

2
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 = "17.12.00.027";
$VERSION = "17.12.00.028";
sub version {
return $VERSION;

3
installer/data/mysql/atomicupdate/bug_9701-add_default_indicators.sql

@ -1,3 +0,0 @@
ALTER TABLE marc_tag_structure
ADD COLUMN ind2_defaultvalue VARCHAR(1) NOT NULL DEFAULT '' AFTER authorised_value,
ADD COLUMN ind1_defaultvalue VARCHAR(1) NOT NULL DEFAULT '' AFTER authorised_value;

18
installer/data/mysql/updatedatabase.pl

@ -15704,7 +15704,7 @@ if( CheckVersion( $DBversion ) ) {
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 15492: Add a standalone self-checkin module)\n";
print "Upgrade to $DBversion done (Bug 15492 - Add a standalone self-checkin module)\n";
}
$DBversion = '17.12.00.025';
@ -15732,7 +15732,7 @@ if( CheckVersion( $DBversion ) ) {
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19804: Add issuingrules.suspension_chargeperiod)\n";
print "Upgrade to $DBversion done (Bug 19804 - Add issuingrules.suspension_chargeperiod)\n";
}
$DBversion = '17.12.00.027';
@ -15746,6 +15746,20 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 19289 - Add system preference UseACQFrameworkForBiblioRecords)\n";
}
$DBversion = '17.12.00.028';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'marc_tag_structure', 'ind1_defaultvalue' ) ) {
$dbh->do(q|
ALTER TABLE marc_tag_structure
ADD COLUMN ind2_defaultvalue VARCHAR(1) NOT NULL DEFAULT '' AFTER authorised_value,
ADD COLUMN ind1_defaultvalue VARCHAR(1) NOT NULL DEFAULT '' AFTER authorised_value;
|);
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 9701 - Add default indicators (marc_tag_structure.indX_defaultvalue))\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.

Loading…
Cancel
Save