chg: [schema] Tag name should be unique

pull/7654/head
Jakub Onderka 2021-08-12 14:30:46 +02:00
parent 1f10a88504
commit 07a8249cb3
2 changed files with 2 additions and 2 deletions

View File

@ -1153,7 +1153,7 @@ CREATE TABLE IF NOT EXISTS `tags` (
`hide_tag` tinyint(1) NOT NULL DEFAULT 0,
`numerical_value` int(11) NULL,
PRIMARY KEY (`id`),
INDEX `name` (`name`(255)),
UNIQUE INDEX `name` (`name`(255)),
INDEX `org_id` (`org_id`),
INDEX `user_id` (`user_id`),
INDEX `numerical_value` (`numerical_value`)

View File

@ -8121,7 +8121,7 @@
},
"tags": {
"id": true,
"name": false,
"name": true,
"org_id": false,
"user_id": false,
"numerical_value": false