# - #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;
+++ /dev/null
-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 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';
}
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';
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.