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

(-)a/installer/data/mysql/kohastructure.sql (-12 / +11 lines)
Lines 899-908 CREATE TABLE `import_records` ( Link Here
899
-- Table structure for `import_record_matches`
899
-- Table structure for `import_record_matches`
900
--
900
--
901
DROP TABLE IF EXISTS `import_record_matches`;
901
DROP TABLE IF EXISTS `import_record_matches`;
902
CREATE TABLE `import_record_matches` (
902
CREATE TABLE `import_record_matches` ( -- matches found when importing a batch of records
903
  `import_record_id` int(11) NOT NULL,
903
  `import_record_id` int(11) NOT NULL, -- the id given to the imported bib record (import_records.import_record_id)
904
  `candidate_match_id` int(11) NOT NULL,
904
  `candidate_match_id` int(11) NOT NULL, -- the biblio the imported record matches (biblio.biblionumber)
905
  `score` int(11) NOT NULL default 0,
905
  `score` int(11) NOT NULL default 0, -- the match score
906
  CONSTRAINT `import_record_matches_ibfk_1` FOREIGN KEY (`import_record_id`)
906
  CONSTRAINT `import_record_matches_ibfk_1` FOREIGN KEY (`import_record_id`)
907
             REFERENCES `import_records` (`import_record_id`) ON DELETE CASCADE ON UPDATE CASCADE,
907
             REFERENCES `import_records` (`import_record_id`) ON DELETE CASCADE ON UPDATE CASCADE,
908
  KEY `record_score` (`import_record_id`, `score`)
908
  KEY `record_score` (`import_record_id`, `score`)
Lines 1178-1191 CREATE TABLE `creator_templates` ( Link Here
1178
--
1178
--
1179
1179
1180
DROP TABLE IF EXISTS `letter`;
1180
DROP TABLE IF EXISTS `letter`;
1181
CREATE TABLE `letter` ( -- table for all notice templates in Koha
1181
CREATE TABLE `letter` ( -- table for all notice and slip templates in Koha
1182
  `module` varchar(20) NOT NULL default '', -- Koha module that triggers this notice
1182
  `module` varchar(20) NOT NULL default '', -- Koha module that triggers this notice or slip
1183
  `code` varchar(20) NOT NULL default '', -- unique identifier for this notice
1183
  `code` varchar(20) NOT NULL default '', -- unique identifier for this notice or slip
1184
  `branchcode` varchar(10) default NULL, -- foreign key, linking to the branches table for the location the item was checked out
1184
  `branchcode` varchar(10) default NULL, -- the branch this notice or slip is used at (branches.branchcode)
1185
  `name` varchar(100) NOT NULL default '', -- plain text name for this notice
1185
  `name` varchar(100) NOT NULL default '', -- plain text name for this notice or slip
1186
  `is_html` tinyint(1) default 0,
1186
  `is_html` tinyint(1) default 0, -- does this notice or slip use HTML (1 for yes, 0 for no)
1187
  `title` varchar(200) NOT NULL default '', -- subject line of the notice
1187
  `title` varchar(200) NOT NULL default '', -- subject line of the notice
1188
  `content` text, -- body text for the notice
1188
  `content` text, -- body text for the notice or slip
1189
  PRIMARY KEY  (`module`,`code`, `branchcode`)
1189
  PRIMARY KEY  (`module`,`code`, `branchcode`)
1190
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1190
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1191
1191
1192
- 

Return to bug 6716