Bug 10363: (follow-up) DB update - change in kohastructure.sql
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 5 Oct 2015 08:42:36 +0000 (09:42 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Oct 2015 15:46:28 +0000 (12:46 -0300)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/kohastructure.sql

index c36a792..9f12618 100644 (file)
@@ -3239,8 +3239,8 @@ CREATE TABLE categories_branches( -- association table between categories and br
 
 DROP TABLE IF EXISTS authorised_values_branches;
 CREATE TABLE authorised_values_branches( -- association table between authorised_values and branches
-    av_id INTEGER,
-    branchcode VARCHAR(10),
+    av_id INT(11) NOT NULL,
+    branchcode VARCHAR(10) NOT NULL,
     FOREIGN KEY (av_id) REFERENCES authorised_values(id) ON DELETE CASCADE,
     FOREIGN KEY (branchcode) REFERENCES branches(branchcode) ON DELETE CASCADE
 ) ENGINE=INNODB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;