chg: [internal] org_blocklists.org_uuid should be unique index

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

View File

@ -798,7 +798,7 @@ CREATE TABLE IF NOT EXISTS `org_blocklists` (
`org_name` varchar(255) COLLATE utf8_bin NOT NULL,
`comment` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`),
INDEX `org_uuid` (`org_uuid`),
UNIQUE INDEX `org_uuid` (`org_uuid`),
INDEX `org_name` (`org_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------

View File

@ -8030,7 +8030,9 @@
"name": false
},
"org_blocklists": {
"id": true
"id": true,
"org_uuid": true,
"org_name": false
},
"posts": {
"id": true,