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

(-)a/installer/data/mysql/db_revs/250600012.pl (-3 / +3 lines)
Lines 10-16 return { Link Here
10
        unless ( TableExists('hold_groups') ) {
10
        unless ( TableExists('hold_groups') ) {
11
            $dbh->do(
11
            $dbh->do(
12
                q{CREATE TABLE hold_groups (
12
                q{CREATE TABLE hold_groups (
13
                hold_group_id int unsigned NOT NULL AUTO_INCREMENT,
13
                hold_group_id int(10) unsigned NOT NULL AUTO_INCREMENT,
14
                PRIMARY KEY (hold_group_id)
14
                PRIMARY KEY (hold_group_id)
15
            ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci}
15
            ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci}
16
            );
16
            );
Lines 18-24 return { Link Here
18
18
19
        unless ( column_exists( 'reserves', 'hold_group_id' ) ) {
19
        unless ( column_exists( 'reserves', 'hold_group_id' ) ) {
20
            $dbh->do(
20
            $dbh->do(
21
                q{ALTER TABLE reserves ADD COLUMN hold_group_id int unsigned NULL DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked' AFTER non_priority}
21
                q{ALTER TABLE reserves ADD COLUMN hold_group_id int(10) unsigned NULL DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked' AFTER non_priority}
22
            );
22
            );
23
            $dbh->do(q{ALTER TABLE reserves ADD KEY reserves_ibfk_hg (hold_group_id)});
23
            $dbh->do(q{ALTER TABLE reserves ADD KEY reserves_ibfk_hg (hold_group_id)});
24
            $dbh->do(
24
            $dbh->do(
Lines 28-34 return { Link Here
28
28
29
        unless ( column_exists( 'old_reserves', 'hold_group_id' ) ) {
29
        unless ( column_exists( 'old_reserves', 'hold_group_id' ) ) {
30
            $dbh->do(
30
            $dbh->do(
31
                q{ALTER TABLE old_reserves ADD COLUMN hold_group_id int unsigned NULL DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked' AFTER non_priority}
31
                q{ALTER TABLE old_reserves ADD COLUMN hold_group_id int(10) unsigned NULL DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked' AFTER non_priority}
32
            );
32
            );
33
            $dbh->do(q{ALTER TABLE old_reserves ADD KEY old_reserves_ibfk_hg (hold_group_id)});
33
            $dbh->do(q{ALTER TABLE old_reserves ADD KEY old_reserves_ibfk_hg (hold_group_id)});
34
            $dbh->do(
34
            $dbh->do(
(-)a/installer/data/mysql/kohastructure.sql (-19 / +18 lines)
Lines 3542-3547 CREATE TABLE `hold_fill_targets` ( Link Here
3542
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
3542
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
3543
/*!40101 SET character_set_client = @saved_cs_client */;
3543
/*!40101 SET character_set_client = @saved_cs_client */;
3544
3544
3545
--
3546
-- Table structure for table `hold_groups`
3547
--
3548
DROP TABLE IF EXISTS `hold_groups`;
3549
/*!40101 SET @saved_cs_client     = @@character_set_client */;
3550
/*!40101 SET character_set_client = utf8mb4 */;
3551
CREATE TABLE hold_groups (
3552
    `hold_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
3553
    PRIMARY KEY (`hold_group_id`)
3554
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
3555
/*!40101 SET character_set_client = @saved_cs_client */;
3556
3545
--
3557
--
3546
-- Table structure for table `housebound_profile`
3558
-- Table structure for table `housebound_profile`
3547
--
3559
--
Lines 5093-5110 CREATE TABLE `old_issues` ( Link Here
5093
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5105
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5094
/*!40101 SET character_set_client = @saved_cs_client */;
5106
/*!40101 SET character_set_client = @saved_cs_client */;
5095
5107
5096
--
5097
-- Table structure for table `hold_groups`
5098
--
5099
DROP TABLE IF EXISTS `hold_groups`;
5100
/*!40101 SET @saved_cs_client     = @@character_set_client */;
5101
/*!40101 SET character_set_client = utf8 */;
5102
CREATE TABLE hold_groups (
5103
    hold_group_id int unsigned NOT NULL AUTO_INCREMENT,
5104
    PRIMARY KEY (hold_group_id)
5105
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5106
/*!40101 SET character_set_client = @saved_cs_client */;
5107
5108
--
5108
--
5109
-- Table structure for table `old_reserves`
5109
-- Table structure for table `old_reserves`
5110
--
5110
--
Lines 5139-5145 CREATE TABLE `old_reserves` ( Link Here
5139
  `itemtype` varchar(10) DEFAULT NULL COMMENT 'If record level hold, the optional itemtype of the item the patron is requesting',
5139
  `itemtype` varchar(10) DEFAULT NULL COMMENT 'If record level hold, the optional itemtype of the item the patron is requesting',
5140
  `item_level_hold` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is the hold placed at item level',
5140
  `item_level_hold` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is the hold placed at item level',
5141
  `non_priority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is this a non priority hold',
5141
  `non_priority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is this a non priority hold',
5142
  `hold_group_id` int unsigned NULL DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked',
5142
  `hold_group_id` int(10) unsigned DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked',
5143
  PRIMARY KEY (`reserve_id`),
5143
  PRIMARY KEY (`reserve_id`),
5144
  KEY `old_reserves_borrowernumber` (`borrowernumber`),
5144
  KEY `old_reserves_borrowernumber` (`borrowernumber`),
5145
  KEY `old_reserves_biblionumber` (`biblionumber`),
5145
  KEY `old_reserves_biblionumber` (`biblionumber`),
Lines 5153-5160 CREATE TABLE `old_reserves` ( Link Here
5153
  CONSTRAINT `old_reserves_ibfk_3` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE SET NULL ON UPDATE SET NULL,
5153
  CONSTRAINT `old_reserves_ibfk_3` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE SET NULL ON UPDATE SET NULL,
5154
  CONSTRAINT `old_reserves_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE SET NULL ON UPDATE SET NULL,
5154
  CONSTRAINT `old_reserves_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE SET NULL ON UPDATE SET NULL,
5155
  CONSTRAINT `old_reserves_ibfk_branchcode` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE,
5155
  CONSTRAINT `old_reserves_ibfk_branchcode` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE,
5156
  CONSTRAINT `old_reserves_ibfk_ig` FOREIGN KEY (`item_group_id`) REFERENCES `item_groups` (`item_group_id`) ON DELETE SET NULL ON UPDATE SET NULL,
5156
  CONSTRAINT `old_reserves_ibfk_hg` FOREIGN KEY (`hold_group_id`) REFERENCES `hold_groups` (`hold_group_id`) ON DELETE SET NULL ON UPDATE SET NULL,
5157
  CONSTRAINT `old_reserves_ibfk_hg` FOREIGN KEY (`hold_group_id`) REFERENCES `hold_groups` (`hold_group_id`) ON DELETE SET NULL ON UPDATE SET NULL
5157
  CONSTRAINT `old_reserves_ibfk_ig` FOREIGN KEY (`item_group_id`) REFERENCES `item_groups` (`item_group_id`) ON DELETE SET NULL ON UPDATE SET NULL
5158
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5158
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5159
/*!40101 SET character_set_client = @saved_cs_client */;
5159
/*!40101 SET character_set_client = @saved_cs_client */;
5160
5160
Lines 5711-5717 CREATE TABLE `reserves` ( Link Here
5711
  `itemtype` varchar(10) DEFAULT NULL COMMENT 'If record level hold, the optional itemtype of the item the patron is requesting',
5711
  `itemtype` varchar(10) DEFAULT NULL COMMENT 'If record level hold, the optional itemtype of the item the patron is requesting',
5712
  `item_level_hold` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is the hold placed at item level',
5712
  `item_level_hold` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is the hold placed at item level',
5713
  `non_priority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is this a non priority hold',
5713
  `non_priority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is this a non priority hold',
5714
  `hold_group_id` int unsigned NULL DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked',
5714
  `hold_group_id` int(10) unsigned DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked',
5715
  PRIMARY KEY (`reserve_id`),
5715
  PRIMARY KEY (`reserve_id`),
5716
  KEY `priorityfoundidx` (`priority`,`found`),
5716
  KEY `priorityfoundidx` (`priority`,`found`),
5717
  KEY `borrowernumber` (`borrowernumber`),
5717
  KEY `borrowernumber` (`borrowernumber`),
Lines 5728-5735 CREATE TABLE `reserves` ( Link Here
5728
  CONSTRAINT `reserves_ibfk_4` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE,
5728
  CONSTRAINT `reserves_ibfk_4` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE,
5729
  CONSTRAINT `reserves_ibfk_5` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE,
5729
  CONSTRAINT `reserves_ibfk_5` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE,
5730
  CONSTRAINT `reserves_ibfk_6` FOREIGN KEY (`desk_id`) REFERENCES `desks` (`desk_id`) ON DELETE SET NULL ON UPDATE CASCADE,
5730
  CONSTRAINT `reserves_ibfk_6` FOREIGN KEY (`desk_id`) REFERENCES `desks` (`desk_id`) ON DELETE SET NULL ON UPDATE CASCADE,
5731
  CONSTRAINT `reserves_ibfk_ig` FOREIGN KEY (`item_group_id`) REFERENCES `item_groups` (`item_group_id`) ON DELETE SET NULL ON UPDATE CASCADE,
5731
  CONSTRAINT `reserves_ibfk_hg` FOREIGN KEY (`hold_group_id`) REFERENCES `hold_groups` (`hold_group_id`) ON DELETE SET NULL ON UPDATE CASCADE,
5732
  CONSTRAINT `reserves_ibfk_hg` FOREIGN KEY (`hold_group_id`) REFERENCES `hold_groups` (`hold_group_id`) ON DELETE SET NULL ON UPDATE CASCADE
5732
  CONSTRAINT `reserves_ibfk_ig` FOREIGN KEY (`item_group_id`) REFERENCES `item_groups` (`item_group_id`) ON DELETE SET NULL ON UPDATE CASCADE
5733
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5733
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5734
/*!40101 SET character_set_client = @saved_cs_client */;
5734
/*!40101 SET character_set_client = @saved_cs_client */;
5735
5735
5736
- 

Return to bug 15516