summaryrefslogtreecommitdiff
path: root/sql/pgsql/migrations
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-04 18:06:43 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-04 18:06:43 +0300
commit5263a07f61698eb26e0482129d66c5ab4be1c9c5 (patch)
tree2b8b58cc141325a5bff5ebcefedafac52a626fbb /sql/pgsql/migrations
parentfc059fc0fc85d0bfbc74f6984fc10e857d21df6c (diff)
record last cron expression (and stub owner_uid) used by scheduled task
Diffstat (limited to 'sql/pgsql/migrations')
-rw-r--r--sql/pgsql/migrations/151.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/pgsql/migrations/151.sql b/sql/pgsql/migrations/151.sql
new file mode 100644
index 000000000..c3d9c159b
--- /dev/null
+++ b/sql/pgsql/migrations/151.sql
@@ -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;