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

(-)a/installer/data/mysql/kohastructure.sql (-63 lines)
Lines 353-386 CREATE TABLE collections_tracking ( Link Here
353
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
353
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
354
354
355
--
355
--
356
-- Table structure for table `default_branch_circ_rules`
357
--
358
359
DROP TABLE IF EXISTS `default_branch_circ_rules`;
360
CREATE TABLE `default_branch_circ_rules` (
361
  `branchcode` VARCHAR(10) NOT NULL,
362
  `holdallowed` tinyint(1) default NULL,
363
  hold_fulfillment_policy ENUM('any', 'homebranch', 'holdingbranch') NOT NULL DEFAULT 'any', -- limit trapping of holds by branchcode
364
  `returnbranch` varchar(15) default NULL,
365
  PRIMARY KEY (`branchcode`),
366
  CONSTRAINT `default_branch_circ_rules_ibfk_1` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`)
367
    ON DELETE CASCADE ON UPDATE CASCADE
368
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
369
370
--
371
-- Table structure for table `default_circ_rules`
372
--
373
374
DROP TABLE IF EXISTS `default_circ_rules`;
375
CREATE TABLE `default_circ_rules` (
376
    `singleton` enum('singleton') NOT NULL default 'singleton',
377
    `holdallowed` int(1) default NULL,
378
    hold_fulfillment_policy ENUM('any', 'homebranch', 'holdingbranch') NOT NULL DEFAULT 'any', -- limit trapping of holds by branchcode
379
    `returnbranch` varchar(15) default NULL,
380
    PRIMARY KEY (`singleton`)
381
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
382
383
--
384
-- Table structure for table `cities`
356
-- Table structure for table `cities`
385
--
357
--
386
358
Lines 967-987 CREATE TABLE `itemtypes` ( -- defines the item types Link Here
967
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
939
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
968
940
969
--
941
--
970
-- Table structure for table `default_branch_item_rules`
971
--
972
973
DROP TABLE IF EXISTS `default_branch_item_rules`;
974
CREATE TABLE `default_branch_item_rules` (
975
  `itemtype` varchar(10) NOT NULL,
976
  `holdallowed` tinyint(1) default NULL,
977
  hold_fulfillment_policy ENUM('any', 'homebranch', 'holdingbranch') NOT NULL DEFAULT 'any', -- limit trapping of holds by branchcode
978
  `returnbranch` varchar(15) default NULL,
979
  PRIMARY KEY  (`itemtype`),
980
  CONSTRAINT `default_branch_item_rules_ibfk_1` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`)
981
    ON DELETE CASCADE ON UPDATE CASCADE
982
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
983
984
--
985
-- Table structure for table `branchtransfers`
942
-- Table structure for table `branchtransfers`
986
--
943
--
987
944
Lines 1004-1028 CREATE TABLE `branchtransfers` ( -- information for items that are in transit be Link Here
1004
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
961
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
1005
962
1006
--
963
--
1007
-- Table structure for table `branch_item_rules`
1008
--
1009
1010
DROP TABLE IF EXISTS `branch_item_rules`;
1011
CREATE TABLE `branch_item_rules` ( -- information entered in the circulation and fine rules under 'Holds policy by item type'
1012
  `branchcode` varchar(10) NOT NULL, -- the branch this rule is for (branches.branchcode)
1013
  `itemtype` varchar(10) NOT NULL, -- the item type this rule applies to (items.itype)
1014
  `holdallowed` tinyint(1) default NULL, -- the number of holds allowed
1015
  hold_fulfillment_policy ENUM('any', 'homebranch', 'holdingbranch') NOT NULL DEFAULT 'any', -- limit trapping of holds by branchcode
1016
  `returnbranch` varchar(15) default NULL, -- the branch the item returns to (homebranch, holdingbranch, noreturn)
1017
  PRIMARY KEY  (`itemtype`,`branchcode`),
1018
  KEY `branch_item_rules_ibfk_2` (`branchcode`),
1019
  CONSTRAINT `branch_item_rules_ibfk_1` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`)
1020
    ON DELETE CASCADE ON UPDATE CASCADE,
1021
  CONSTRAINT `branch_item_rules_ibfk_2` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`)
1022
    ON DELETE CASCADE ON UPDATE CASCADE
1023
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
1024
1025
--
1026
-- Table structure for table `creator_images`
964
-- Table structure for table `creator_images`
1027
--
965
--
1028
966
1029
- 

Return to bug 18928