Bug 7688: (follow-up) correct SQL to create the subscription table
authorGalen Charlton <gmc@esilibrary.com>
Wed, 30 Oct 2013 02:40:14 +0000 (02:40 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 30 Oct 2013 02:40:14 +0000 (02:40 +0000)
Columns referring to a foreign key must have matching
types.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/data/mysql/kohastructure.sql

index 56a78c1..17615c5 100644 (file)
@@ -2040,7 +2040,7 @@ CREATE TABLE `subscription` (
   `weeklength` int(11) default 0,
   `monthlength` int(11) default 0,
   `numberlength` int(11) default 0,
-  `periodicity` tinyint(4) default 0,
+  `periodicity` integer default null,
   countissuesperunit INTEGER NOT NULL DEFAULT 1,
   `notes` mediumtext,
   `status` varchar(100) NOT NULL default '',
@@ -2055,7 +2055,7 @@ CREATE TABLE `subscription` (
   `irregularity` text,
   skip_serialseq BOOLEAN NOT NULL DEFAULT 0,
   `letter` varchar(20) default NULL,
-  `numberpattern` tinyint(3) default 0,
+  `numberpattern` integer default null,
   locale VARCHAR(80) DEFAULT NULL,
   `distributedto` text,
   `internalnotes` longtext,