drop table if exists ttrss_feed_categories;
drop table if exists ttrss_users;
drop table if exists ttrss_themes;
+drop table if exists ttrss_scheduled_updates;
begin;
drop table ttrss_feed_categories;
drop table ttrss_users;
drop table ttrss_themes;
+drop table ttrss_scheduled_updates;
begin;
--- /dev/null
+begin;
+
+create table ttrss_scheduled_updates (id integer not null primary key auto_increment,
+ owner_uid integer not null,
+ feed_id integer default null,
+ entered datetime not null,
+ foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
+ foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB;
+
+update ttrss_version set schema_version = 5;
+
+commit;
--- /dev/null
+begin;
+
+create table ttrss_scheduled_updates (id integer not null primary key auto_increment,
+ owner_uid integer not null,
+ feed_id integer default null,
+ entered datetime not null,
+ foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
+ foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB;
+
+update ttrss_version set schema_version = 5;
+
+commit;