mirror of https://github.com/MISP/MISP
chg: [internal] Organisation and object UUID should be unique
parent
7748598750
commit
6130065b5b
|
@ -664,7 +664,7 @@ CREATE TABLE IF NOT EXISTS `objects` (
|
||||||
INDEX `template_version` (`template_version`),
|
INDEX `template_version` (`template_version`),
|
||||||
INDEX `meta-category` (`meta-category`),
|
INDEX `meta-category` (`meta-category`),
|
||||||
INDEX `event_id` (`event_id`),
|
INDEX `event_id` (`event_id`),
|
||||||
INDEX `uuid` (`uuid`),
|
UNIQUE INDEX `uuid` (`uuid`),
|
||||||
INDEX `timestamp` (`timestamp`),
|
INDEX `timestamp` (`timestamp`),
|
||||||
INDEX `distribution` (`distribution`),
|
INDEX `distribution` (`distribution`),
|
||||||
INDEX `sharing_group_id` (`sharing_group_id`),
|
INDEX `sharing_group_id` (`sharing_group_id`),
|
||||||
|
@ -787,7 +787,7 @@ CREATE TABLE IF NOT EXISTS `organisations` (
|
||||||
`restricted_to_domain` text COLLATE utf8_bin,
|
`restricted_to_domain` text COLLATE utf8_bin,
|
||||||
`landingpage` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
|
`landingpage` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
INDEX `uuid` (`uuid`),
|
UNIQUE INDEX `uuid` (`uuid`),
|
||||||
INDEX `name` (`name`(255))
|
INDEX `name` (`name`(255))
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
|
||||||
|
|
|
@ -7991,7 +7991,7 @@
|
||||||
"template_version": false,
|
"template_version": false,
|
||||||
"meta-category": false,
|
"meta-category": false,
|
||||||
"event_id": false,
|
"event_id": false,
|
||||||
"uuid": false,
|
"uuid": true,
|
||||||
"timestamp": false,
|
"timestamp": false,
|
||||||
"distribution": false,
|
"distribution": false,
|
||||||
"sharing_group_id": false,
|
"sharing_group_id": false,
|
||||||
|
@ -8026,7 +8026,7 @@
|
||||||
},
|
},
|
||||||
"organisations": {
|
"organisations": {
|
||||||
"id": true,
|
"id": true,
|
||||||
"uuid": false,
|
"uuid": true,
|
||||||
"name": false
|
"name": false
|
||||||
},
|
},
|
||||||
"org_blocklists": {
|
"org_blocklists": {
|
||||||
|
|
Loading…
Reference in New Issue