# - #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 = "20.06.00.031";
+$VERSION = "20.06.00.032";
sub version {
return $VERSION;
+++ /dev/null
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
- if( !column_exists( 'items', 'exclude_from_local_holds_priority' ) ) {
- $dbh->do(q{
- ALTER TABLE `items` ADD COLUMN `exclude_from_local_holds_priority` tinyint(1) default NULL AFTER `new_status` -- Exclude this item from local holds priority
- });
- }
-
- if( !column_exists( 'deleteditems', 'exclude_from_local_holds_priority' ) ) {
- $dbh->do(q{
- ALTER TABLE `deleteditems` ADD COLUMN `exclude_from_local_holds_priority` tinyint(1) default NULL AFTER `new_status` -- Exclude this item from local holds priority
- });
- }
-
- if( !column_exists( 'categories', 'exclude_from_local_holds_priority' ) ) {
- $dbh->do(q{
- ALTER TABLE `categories` ADD COLUMN `exclude_from_local_holds_priority` tinyint(1) default NULL AFTER `change_password` -- Exclude patrons of this category from local holds priority
- });
- }
- # Always end with this (adjust the bug info)
- NewVersion( $DBversion, 19889, "Add exclude_from_local_holds_priority column to items, deleteditems and categories tables");
-}
NewVersion( $DBversion, 22789, "Add non_priority column on reserves and old_reserves tables");
}
+$DBversion = '20.06.00.032';
+if( CheckVersion( $DBversion ) ) {
+ if( !column_exists( 'items', 'exclude_from_local_holds_priority' ) ) {
+ $dbh->do(q{
+ ALTER TABLE `items` ADD COLUMN `exclude_from_local_holds_priority` tinyint(1) default NULL AFTER `new_status`
+ });
+ }
+
+ if( !column_exists( 'deleteditems', 'exclude_from_local_holds_priority' ) ) {
+ $dbh->do(q{
+ ALTER TABLE `deleteditems` ADD COLUMN `exclude_from_local_holds_priority` tinyint(1) default NULL AFTER `new_status`
+ });
+ }
+
+ if( !column_exists( 'categories', 'exclude_from_local_holds_priority' ) ) {
+ $dbh->do(q{
+ ALTER TABLE `categories` ADD COLUMN `exclude_from_local_holds_priority` tinyint(1) default NULL AFTER `change_password`
+ });
+ }
+ NewVersion( $DBversion, 19889, "Add exclude_from_local_holds_priority column to items, deleteditems and categories tables");
+}
+
# 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/';