chg: [schema] Organisation name should be unique

pull/7657/head
Jakub Onderka 2021-08-13 08:59:26 +02:00
parent ec87f8bfa3
commit 9ce19c4f09
2 changed files with 2 additions and 2 deletions

View File

@ -788,7 +788,7 @@ CREATE TABLE IF NOT EXISTS `organisations` (
`landingpage` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`),
UNIQUE INDEX `uuid` (`uuid`),
INDEX `name` (`name`(255))
UNIQUE INDEX `name` (`name`(255))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
CREATE TABLE IF NOT EXISTS `org_blocklists` (

View File

@ -8027,7 +8027,7 @@
"organisations": {
"id": true,
"uuid": true,
"name": false
"name": true
},
"org_blocklists": {
"id": true,