Semaphore/db/sql/migrations/v1.4.0.sql

18 lines
473 B
MySQL
Raw Normal View History

CREATE TABLE `event` (
2020-11-28 22:49:44 +01:00
`project_id` int DEFAULT NULL,
`object_id` int DEFAULT NULL,
`object_type` varchar(20) DEFAULT '',
`description` text,
2020-11-28 22:49:44 +01:00
`created` datetime NOT NULL
);
CREATE INDEX `project_id` ON `event`(`project_id`);
CREATE INDEX `object_id` ON `event`(`object_id`);
CREATE INDEX `created` ON `event`(`created`);
alter table `task` add `created` datetime null;
alter table `task` add `start` datetime null;
alter table `task` add `end` datetime null;