chg: [schema] Set sharing group name as unique index

pull/7871/head
Jakub Onderka 2021-10-20 18:23:35 +02:00
parent 2efc0be278
commit 4fa9660ff5
2 changed files with 2 additions and 0 deletions

View File

@ -1056,6 +1056,7 @@ CREATE TABLE IF NOT EXISTS `sharing_groups` (
INDEX `org_id` (`org_id`),
INDEX `sync_user_id` (`sync_user_id`),
UNIQUE INDEX `uuid` (`uuid`),
UNIQUE INDEX `name` (`name`),
INDEX `organisation_uuid` (`organisation_uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

View File

@ -8062,6 +8062,7 @@
"sharing_groups": {
"id": true,
"uuid": true,
"name": true,
"org_id": false,
"sync_user_id": false,
"organisation_uuid": false