aboutsummaryrefslogtreecommitdiff
path: root/sql/pgsql
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-04 09:36:27 +0000
committerAndrew Dolgov <fox@fakecake.org>2025-05-04 09:36:27 +0000
commitbb0a136944cbb60b44d655bf8e50553119210578 (patch)
treecf6b5464b3d3be667444316608d369a081016e6d /sql/pgsql
parentbc0da8edb699eec9fb6424bb5d8650ac48dca69d (diff)
parent01159fa6f8c2421457297914dd42039bc12b826e (diff)
Merge branch 'cringe-jobs' into 'master'
Cringe jobs See merge request tt-rss/tt-rss!124
Diffstat (limited to 'sql/pgsql')
-rw-r--r--sql/pgsql/migrations/150.sql6
-rw-r--r--sql/pgsql/schema.sql8
2 files changed, 14 insertions, 0 deletions
diff --git a/sql/pgsql/migrations/150.sql b/sql/pgsql/migrations/150.sql
new file mode 100644
index 000000000..19f3aaa3a
--- /dev/null
+++ b/sql/pgsql/migrations/150.sql
@@ -0,0 +1,6 @@
+create table ttrss_scheduled_tasks(
+ id serial not null primary key,
+ task_name varchar(250) unique not null,
+ last_duration integer not null,
+ last_rc integer not null,
+ last_run timestamp not null default NOW());
diff --git a/sql/pgsql/schema.sql b/sql/pgsql/schema.sql
index acfa619c9..3145629fc 100644
--- a/sql/pgsql/schema.sql
+++ b/sql/pgsql/schema.sql
@@ -1,3 +1,4 @@
+drop table if exists ttrss_scheduled_tasks;
drop table if exists ttrss_error_log;
drop table if exists ttrss_plugin_storage;
drop table if exists ttrss_linked_feeds;
@@ -394,4 +395,11 @@ create table ttrss_error_log(
context text not null,
created_at timestamp not null);
+create table ttrss_scheduled_tasks(
+ id serial not null primary key,
+ task_name varchar(250) unique not null,
+ last_duration integer not null,
+ last_rc integer not null,
+ last_run timestamp not null default NOW());
+
commit;