Semaphore/db/sql/migrations/v2.2.1.sql

17 lines
438 B
MySQL
Raw Permalink Normal View History

2020-11-28 22:49:44 +01:00
alter table task__output rename to task__output_backup;
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;