Allow to associate project categories to colors
The color is then used as background in the board and list views
This commit is contained in:
@@ -294,6 +294,7 @@ CREATE TABLE `project_has_categories` (
|
||||
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`project_id` int(11) NOT NULL,
|
||||
`description` mediumtext COLLATE utf8mb4_unicode_ci,
|
||||
`color_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `idx_project_category` (`project_id`,`name`),
|
||||
KEY `categories_project_idx` (`project_id`),
|
||||
|
||||
@@ -542,7 +542,8 @@ CREATE TABLE "project_has_categories" (
|
||||
"id" integer NOT NULL,
|
||||
"name" character varying(255) NOT NULL,
|
||||
"project_id" integer NOT NULL,
|
||||
"description" "text"
|
||||
"description" "text",
|
||||
"color_id" character varying(255)
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user