Semaphore/db/sql/migrations/v1.0.0.sql

19 lines
654 B
MySQL
Raw Normal View History

2021-08-24 17:20:34 +02:00
alter table task add `debug` boolean not null default false;
2020-11-28 22:49:44 +01:00
alter table `project__template` add `arguments` text null;
2021-08-24 17:20:34 +02:00
alter table `project__template` add `override_args` boolean not null default false;
2020-11-28 22:49:44 +01:00
alter table `project__inventory` add `ssh_key_id` int null references access_key(`id`);
2020-11-28 22:49:44 +01:00
alter table `task__output` rename to `task__output_backup`;
create table `task__output`
(
task_id int not null
references task
on delete cascade,
task varchar(255) not null,
time datetime not null,
output longtext not null
);
insert into `task__output` select * from `task__output_backup`;
drop table `task__output_backup`;