From: Andrew Dolgov Date: Sun, 12 Feb 2006 05:24:36 +0000 (+0100) Subject: add upgrade scripts to 1.1.3 X-Git-Tag: 1.1.3~42 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b4548c32373c7813f86a8b4564a5609f3c621651;p=tt-rss.git add upgrade scripts to 1.1.3 --- diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 8bfd4886..9214c1bc 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -15,6 +15,7 @@ drop table if exists ttrss_feeds; 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; diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index d948fa56..bb5cb5da 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -15,6 +15,7 @@ drop table ttrss_feeds; drop table ttrss_feed_categories; drop table ttrss_users; drop table ttrss_themes; +drop table ttrss_scheduled_updates; begin; diff --git a/schema/upgrade-1.1.2-1.1.3-mysql.sql b/schema/upgrade-1.1.2-1.1.3-mysql.sql new file mode 100644 index 00000000..e3ddb035 --- /dev/null +++ b/schema/upgrade-1.1.2-1.1.3-mysql.sql @@ -0,0 +1,12 @@ +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; diff --git a/schema/upgrade-1.1.2-1.1.3-pgsql.sql b/schema/upgrade-1.1.2-1.1.3-pgsql.sql new file mode 100644 index 00000000..e3ddb035 --- /dev/null +++ b/schema/upgrade-1.1.2-1.1.3-pgsql.sql @@ -0,0 +1,12 @@ +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;