]> git.wh0rd.org Git - tt-rss.git/commitdiff
add upgrade scripts to 1.1.3
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 12 Feb 2006 05:24:36 +0000 (06:24 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 12 Feb 2006 05:24:36 +0000 (06:24 +0100)
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/upgrade-1.1.2-1.1.3-mysql.sql [new file with mode: 0644]
schema/upgrade-1.1.2-1.1.3-pgsql.sql [new file with mode: 0644]

index 8bfd488600ce5ea30207109da9f92cb8f7a9a03c..9214c1bc42866671ca88d2aefd443f6e4df8d313 100644 (file)
@@ -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;
 
index d948fa5605db9d8659b8714a96b3fd3eb1df3713..bb5cb5da122edd450c22295e7c7a3b24299cb445 100644 (file)
@@ -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 (file)
index 0000000..e3ddb03
--- /dev/null
@@ -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 (file)
index 0000000..e3ddb03
--- /dev/null
@@ -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;