# - #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 = "19.12.00.053";
+$VERSION = "19.12.00.054";
sub version {
return $VERSION;
+++ /dev/null
-$DBversion = 'XXX';
-if( CheckVersion( $DBversion ) ) {
- $dbh->do(qq{
- CREATE TABLE desks ( -- desks available in a library
- desk_id int(11) NOT NULL auto_increment, -- unique identifier added by Koha
- desk_name varchar(100) NOT NULL default '', -- name of the desk
- branchcode varchar(10) NOT NULL, -- library the desk is located at
- PRIMARY KEY (desk_id),
- KEY `fk_desks_branchcode` (branchcode),
- CONSTRAINT `fk_desks_branchcode` FOREIGN KEY (branchcode) REFERENCES branches (branchcode) ON DELETE CASCADE ON UPDATE CASCADE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-
- });
- SetVersion( $DBversion );
- print "Upgrade to $DBversion done (Bug 13881 - Add desk management)\n";
-}
NewVersion( $DBversion, 24476, "Allow patrons to opt-out of autorenewal");
}
+$DBversion = '19.12.00.054';
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do(qq{
+ CREATE TABLE desks ( -- desks available in a library
+ desk_id int(11) NOT NULL auto_increment, -- unique identifier added by Koha
+ desk_name varchar(100) NOT NULL default '', -- name of the desk
+ branchcode varchar(10) NOT NULL, -- library the desk is located at
+ PRIMARY KEY (desk_id),
+ KEY `fk_desks_branchcode` (branchcode),
+ CONSTRAINT `fk_desks_branchcode` FOREIGN KEY (branchcode) REFERENCES branches (branchcode) ON DELETE CASCADE ON UPDATE CASCADE
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+ });
+
+ NewVersion( $DBversion, 13881, "Add desk management");
+}
+
# 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/';