2022-01-24 22:25:39 +01:00
|
|
|
alter table `event` rename to `event_backup_5784568`;
|
2021-12-15 22:22:52 +01:00
|
|
|
|
2021-11-10 09:28:10 +01:00
|
|
|
create table `event`
|
|
|
|
(
|
2021-12-15 22:22:52 +01:00
|
|
|
`id` integer primary key autoincrement,
|
|
|
|
`project_id` int,
|
|
|
|
`object_id` int,
|
2021-11-10 09:28:10 +01:00
|
|
|
`object_type` varchar(20) DEFAULT '',
|
|
|
|
`description` text,
|
2021-12-15 22:22:52 +01:00
|
|
|
`created` datetime NOT NULL,
|
|
|
|
`user_id` int,
|
|
|
|
foreign key (`project_id`) references `project` (`id`) on delete cascade,
|
|
|
|
foreign key (`user_id`) references `user` (`id`) on delete set null
|
2021-11-10 09:28:10 +01:00
|
|
|
);
|