diff options
Diffstat (limited to 'sql/mysql/schema.sql')
-rw-r--r-- | sql/mysql/schema.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/mysql/schema.sql b/sql/mysql/schema.sql new file mode 100644 index 0000000..0df2d9a --- /dev/null +++ b/sql/mysql/schema.sql @@ -0,0 +1,12 @@ +drop table if exists ttrss_plugin_reddit_delay_cache; + +create table ttrss_plugin_reddit_delay_cache (id integer not null primary key auto_increment, + feed_id integer not null REFERENCES ttrss_feeds(id) on DELETE cascade, + link text not null, + item text not NULL, + orig_ts datetime not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8; + +create index ttrss_plugin_reddit_delay_cache_link_idx on ttrss_plugin_reddit_delay_cache(link); +create index ttrss_plugin_reddit_delay_cache_feed_id_idx on ttrss_plugin_reddit_delay_cache(feed_id); + +create unique index ttrss_plugin_reddit_delay_cache_idx on ttrss_plugin_reddit_delay_cache(feed_id, link); |