/
wax_boy
/
semaphore_custom
Обзор
Документация
Войти
/
wax_boy
/
semaphore_custom
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
db/sql/migrations/v2.18.5.sql
19 строк
675 B
Denis Gukov
feat/tagged global runner (#3804)
28 апр 2026, 01:53
Не верифицирован
28 апр 2026, 01:53
5a3b26a
Код
Авторство
О чём код?
alter table `runner` add column `is_default` boolean not null default false; update `runner` set `is_default` = true where tag = ''; create table `runner__tag` ( `id` integer primary key autoincrement, `runner_id` int not null, `tag` varchar(200) not null, foreign key (`runner_id`) references `runner`(`id`) on delete cascade ); create unique index `runner__tag_runner_id_tag_idx` on `runner__tag` (`runner_id`, `tag`); create index `runner__tag_tag_idx` on `runner__tag` (`tag`); insert into `runner__tag` (`runner_id`, `tag`) select `id`, `tag` from `runner` where `tag` <> ''; alter table `runner` drop column `tag`;