record last cron expression (and stub owner_uid) used by scheduled task

This commit is contained in:
Andrew Dolgov
2025-05-04 18:06:43 +03:00
parent fc059fc0fc
commit 5263a07f61
5 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
alter table ttrss_scheduled_tasks add column owner_uid integer default null references ttrss_users(id) ON DELETE CASCADE;
alter table ttrss_scheduled_tasks add column last_cron_expression varchar(250);
update ttrss_scheduled_tasks set last_cron_expression = '';
alter table ttrss_scheduled_tasks alter column last_cron_expression set not null;

View File

@@ -400,6 +400,8 @@ create table ttrss_scheduled_tasks(
task_name varchar(250) unique not null,
last_duration integer not null,
last_rc integer not null,
last_run timestamp not null default NOW());
last_run timestamp not null default NOW(),
last_cron_expression varchar(250) not null,
owner_uid integer default null references ttrss_users(id) ON DELETE CASCADE);
commit;