Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #190 from dlbptfs/PT16549719_04-08

Pt16549719 04 08
  • Loading branch information...
commit f11a7c0d4617c880cde1b083aa58709ae2cbdb99 2 parents 540d8c7 + 242958b
@ctfliblime ctfliblime authored
View
2  C4/Context.pm
@@ -32,7 +32,7 @@ use POSIX ();
use JSON qw(from_json);
use Koha;
-$VERSION = '4.07.00.001';
+$VERSION = '4.08.00.002';
die "Version mismatch: $VERSION > $Koha::VERSION" if ($VERSION gt $Koha::VERSION);
View
3  installer/data/mysql/kohastructure.sql
@@ -2720,11 +2720,12 @@ CREATE TABLE import_profile_subfield_actions (
DROP TABLE IF EXISTS `session_defaults`;
CREATE TABLE `session_defaults` (
+ `session_defaults_id` int(11) NOT NULL auto_increment,
`branchcode` varchar(10) NOT NULL,
`name` varchar(32) NOT NULL,
`key` varchar(32) NOT NULL,
`value` text,
- PRIMARY KEY (`branchcode`,`name`),
+ PRIMARY KEY (`session_defaults_id`),
CONSTRAINT `session_defaults_ibfk_1` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
View
8 installer/data/mysql/updatedatabase.pl
@@ -4688,6 +4688,14 @@
print "Upgrade to $DBversion done ( Allow lost_items.itemtype to be nullable )\n";
}
+$DBversion = '4.08.00.002';
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+ $dbh->do('ALTER TABLE session_defaults DROP PRIMARY KEY');
+ $dbh->do('ALTER TABLE session_defaults ADD COLUMN session_defaults_id int(11) PRIMARY KEY AUTO_INCREMENT FIRST');
+ SetVersion ($DBversion);
+ print "Upgrade to $DBversion done ( Add session_defaults_id to sesstion defaults table and make it the primary key )\n";
+}
+
printf "Database schema now up to date at version %s as of %s.\n", $DBversion, scalar localtime;
=item DropAllForeignKeys($table)
View
2  kohaversion.pl
@@ -10,7 +10,7 @@
use strict;
sub kohaversion {
- our $VERSION = '4.07.00.001';
+ our $VERSION = '4.08.00.002';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install
Please sign in to comment.
Something went wrong with that request. Please try again.