]> git.wh0rd.org - tt-rss.git/commitdiff
schema: add new filter type (refs #225)
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 13 Dec 2008 11:57:01 +0000 (12:57 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 13 Dec 2008 11:57:01 +0000 (12:57 +0100)
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/versions/mysql/46.sql [new file with mode: 0644]
schema/versions/pgsql/46.sql [new file with mode: 0644]

index e4fdfcca3120b51fd32d6767c3068731454640f4..6934440a63e4508236c17f1e6af8fe150cb62ba6 100644 (file)
@@ -154,6 +154,8 @@ insert into ttrss_filter_types (id,name,description) values (3, 'both',
        'Title or Content');
 insert into ttrss_filter_types (id,name,description) values (4, 'link', 
        'Link');
+insert into ttrss_filter_types (id,name,description) values (5, 'date', 
+       'Article Date');
 
 create table ttrss_filter_actions (id integer not null primary key, 
        name varchar(120) unique not null, 
@@ -219,7 +221,7 @@ create table ttrss_tags (id integer primary key auto_increment,
 
 create table ttrss_version (schema_version int not null) TYPE=InnoDB;
 
-insert into ttrss_version values (45);
+insert into ttrss_version values (46);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
index 5b40fab33eb72aa71b2ba701d3f67de8b8c92762..2efcaf7f01059db5f24728e1d70f974ee2874fa2 100644 (file)
@@ -141,6 +141,8 @@ insert into ttrss_filter_types (id,name,description) values (3, 'both',
        'Title or Content');
 insert into ttrss_filter_types (id,name,description) values (4, 'link', 
        'Link');
+insert into ttrss_filter_types (id,name,description) values (5, 'date', 
+       'Article Date');
 
 create table ttrss_filter_actions (id integer not null primary key, 
        name varchar(120) unique not null, 
@@ -196,7 +198,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
 
 create table ttrss_version (schema_version int not null);
 
-insert into ttrss_version values (45);
+insert into ttrss_version values (46);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
diff --git a/schema/versions/mysql/46.sql b/schema/versions/mysql/46.sql
new file mode 100644 (file)
index 0000000..8bf2562
--- /dev/null
@@ -0,0 +1,4 @@
+insert into ttrss_filter_types (id,name,description) values (5, 'date', 
+       'Article Date');
+
+update ttrss_version set schema_version = 46;
diff --git a/schema/versions/pgsql/46.sql b/schema/versions/pgsql/46.sql
new file mode 100644 (file)
index 0000000..007824f
--- /dev/null
@@ -0,0 +1,5 @@
+
+insert into ttrss_filter_types (id,name,description) values (5, 'date', 
+       'Article Date');
+
+update ttrss_version set schema_version = 46;