Bug 40517: (QA follow-up): Fix kohstructure.sql
The order was wrong, PRIMARY KEY must come first. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
14d1c1338a
commit
dc5cee850d
|
|
@ -3554,9 +3554,9 @@ CREATE TABLE `hold_groups` (
|
|||
`hold_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`borrowernumber` int(11) DEFAULT NULL COMMENT 'foreign key, linking this to the borrowers table',
|
||||
`visual_hold_group_id` int(11) DEFAULT NULL COMMENT 'visual ID for this hold group, in the context of the related patron',
|
||||
PRIMARY KEY (`hold_group_id`),
|
||||
KEY `hold_groups_borrowernumber` (`borrowernumber`),
|
||||
CONSTRAINT `hold_groups_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE,
|
||||
PRIMARY KEY (`hold_group_id`)
|
||||
CONSTRAINT `hold_groups_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue