2020-11-28 22:49:44 +01:00
|
|
|
alter table task__output rename to task__output_backup;
|
2017-03-12 19:51:03 +01:00
|
|
|
|
2020-11-28 22:49:44 +01:00
|
|
|
create table task__output
|
|
|
|
(
|
|
|
|
id integer primary key autoincrement,
|
2021-10-26 11:36:07 +02:00
|
|
|
task_id int not null,
|
2020-11-28 22:49:44 +01:00
|
|
|
task varchar(255) not null,
|
|
|
|
time datetime not null,
|
2021-10-26 11:36:07 +02:00
|
|
|
output longtext not null,
|
|
|
|
|
|
|
|
foreign key (`task_id`) references task(`id`) on delete cascade
|
2020-11-28 22:49:44 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
insert into task__output(task_id, task, time, output) select * from task__output_backup;
|
|
|
|
|
|
|
|
drop table task__output_backup;
|