chg: [internal] Organisation and object UUID should be unique

pull/7620/head
Jakub Onderka 2021-08-03 10:26:25 +02:00
parent 7748598750
commit 6130065b5b
2 changed files with 4 additions and 4 deletions

View File

@ -664,7 +664,7 @@ CREATE TABLE IF NOT EXISTS `objects` (
INDEX `template_version` (`template_version`),
INDEX `meta-category` (`meta-category`),
INDEX `event_id` (`event_id`),
INDEX `uuid` (`uuid`),
UNIQUE INDEX `uuid` (`uuid`),
INDEX `timestamp` (`timestamp`),
INDEX `distribution` (`distribution`),
INDEX `sharing_group_id` (`sharing_group_id`),
@ -787,7 +787,7 @@ CREATE TABLE IF NOT EXISTS `organisations` (
`restricted_to_domain` text COLLATE utf8_bin,
`landingpage` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`),
INDEX `uuid` (`uuid`),
UNIQUE INDEX `uuid` (`uuid`),
INDEX `name` (`name`(255))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

View File

@ -7991,7 +7991,7 @@
"template_version": false,
"meta-category": false,
"event_id": false,
"uuid": false,
"uuid": true,
"timestamp": false,
"distribution": false,
"sharing_group_id": false,
@ -8026,7 +8026,7 @@
},
"organisations": {
"id": true,
"uuid": false,
"uuid": true,
"name": false
},
"org_blocklists": {