View | Details | Raw Unified | Return to bug 15707
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/library_groups.sql (+12 lines)
Line 0 Link Here
1
CREATE TABLE library_groups (
2
    id INT(11) NOT NULL auto_increment,    -- unique id for each group
3
    parent_id INT(11) NULL DEFAULT NULL,   -- if this is a child group, the id of the parent group
4
    branchcode VARCHAR(10) NULL DEFAULT NULL, -- The branchcode of a branch belonging to the parent group
5
    title VARCHAR(100) NULL DEFAULT NULL,     -- Short description of the goup
6
    description TEXT NULL DEFAULT NULL,    -- Longer explanation of the group, if necessary
7
    created_on DATETIME NOT NULL,          -- Date and time of creation
8
    updated_on DATETIME NULL DEFAULT NULL, -- Date and time of last
9
    PRIMARY KEY id ( id ),
10
    FOREIGN KEY (parent_id) REFERENCES library_groups(id) ON UPDATE CASCADE ON DELETE CASCADE,
11
    FOREIGN KEY (branchcode) REFERENCES branches(branchcode) ON UPDATE CASCADE ON DELETE CASCADE
12
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
(-)a/installer/data/mysql/kohastructure.sql (-1 / +17 lines)
Lines 3921-3926 CREATE TABLE `article_requests` ( Link Here
3921
  CONSTRAINT `article_requests_ibfk_4` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE
3921
  CONSTRAINT `article_requests_ibfk_4` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE
3922
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
3922
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
3923
3923
3924
--
3925
-- Table structure for table 'library_groups'
3926
--
3927
3928
CREATE TABLE library_groups (
3929
    id INT(11) NOT NULL auto_increment,    -- unique id for each group
3930
    parent_id INT(11) NULL DEFAULT NULL,   -- if this is a child group, the id of the parent group
3931
    branchcode VARCHAR(10) NULL DEFAULT NULL, -- The branchcode of a branch belonging to the parent group
3932
    title VARCHAR(100) NULL DEFAULT NULL,     -- Short description of the goup
3933
    description TEXT NULL DEFAULT NULL,    -- Longer explanation of the group, if necessary
3934
    created_on DATETIME NOT NULL,          -- Date and time of creation
3935
    updated_on DATETIME NULL DEFAULT NULL, -- Date and time of last
3936
    PRIMARY KEY id ( id ),
3937
    FOREIGN KEY (parent_id) REFERENCES library_groups(id) ON UPDATE CASCADE ON DELETE CASCADE,
3938
    FOREIGN KEY (branchcode) REFERENCES branches(branchcode) ON UPDATE CASCADE ON DELETE CASCADE
3939
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
3940
3924
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
3941
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
3925
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
3942
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
3926
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
3943
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
3927
- 

Return to bug 15707