Bug 13881: DBRev 19.12.00.054

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2020-03-25 09:28:16 +00:00
parent de5a0b15a3
commit bc25e2c100
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
3 changed files with 17 additions and 17 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 = "19.12.00.053";
$VERSION = "19.12.00.054";
sub version {
return $VERSION;

View File

@ -1,16 +0,0 @@
$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";
}

View File

@ -21271,6 +21271,22 @@ if( CheckVersion( $DBversion ) ) {
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/';