chg: [internal] Switch admin setting name column to unique index

pull/7791/head
Jakub Onderka 2021-09-26 18:00:26 +02:00
parent d7005ea722
commit e2ba5f0a14
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS `admin_settings` (
`setting` varchar(255) COLLATE utf8_bin NOT NULL,
`value` text COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`),
INDEX `setting` (`setting`)
UNIQUE INDEX `setting` (`setting`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `allowedlist` (

View File

@ -7739,7 +7739,7 @@
"indexes": {
"admin_settings": {
"id": true,
"setting": false
"setting": true
},
"allowedlist": {
"id": true