]> git.wh0rd.org - tt-rss.git/commitdiff
add ttrss_user_entries.plugin_data (bump schema)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Feb 2013 18:08:38 +0000 (22:08 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Feb 2013 18:08:38 +0000 (22:08 +0400)
include/functions.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/versions/mysql/103.sql [new file with mode: 0644]
schema/versions/pgsql/103.sql [new file with mode: 0644]

index 74ad609132a02d24b622895365612f0d0b7b3ed3..b0ccba31392bf55ef12c2516c540f462b14d4ce9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
        define('EXPECTED_CONFIG_VERSION', 26);
-       define('SCHEMA_VERSION', 102);
+       define('SCHEMA_VERSION', 103);
        define('SELF_USER_AGENT', 'Tiny Tiny RSS/' . VERSION . ' (http://tt-rss.org/)');
 
        $fetch_last_error = false;
index 10320b5b7d52e09072b3f37d78fc40b8546e8c6b..5b2fb92dc68d1bd8639e2ca1f6eda0f0dfec826c 100644 (file)
@@ -157,6 +157,7 @@ create table ttrss_entries (id integer not null primary key auto_increment,
        date_entered datetime not null,
        date_updated datetime not null,
        num_comments integer not null default 0,
+       plugin_data longtext,
        comments varchar(250) not null default '',
        author varchar(250) not null default '') ENGINE=InnoDB DEFAULT CHARSET=UTF8;
 
@@ -309,7 +310,7 @@ create table ttrss_tags (id integer primary key auto_increment,
 
 create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
 
-insert into ttrss_version values (102);
+insert into ttrss_version values (103);
 
 create table ttrss_enclosures (id integer primary key auto_increment,
        content_url text not null,
index 33c32d181b483ec675831405836d9c31a9842d40..04ac6e86792c3dd1d0f62c2b8d55da878f68db6b 100644 (file)
@@ -138,6 +138,7 @@ create table ttrss_entries (id serial not null primary key,
        date_updated timestamp not null,
        num_comments integer not null default 0,
        comments varchar(250) not null default '',
+       plugin_data text,
        author varchar(250) not null default '');
 
 create index ttrss_entries_guid_index on ttrss_entries(guid);
@@ -257,7 +258,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id);
 
 create table ttrss_version (schema_version int not null);
 
-insert into ttrss_version values (102);
+insert into ttrss_version values (103);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
diff --git a/schema/versions/mysql/103.sql b/schema/versions/mysql/103.sql
new file mode 100644 (file)
index 0000000..6a93b80
--- /dev/null
@@ -0,0 +1,7 @@
+begin;
+
+alter table ttrss_entries add column plugin_data longtext;
+
+update ttrss_version set schema_version = 103;
+
+commit;
diff --git a/schema/versions/pgsql/103.sql b/schema/versions/pgsql/103.sql
new file mode 100644 (file)
index 0000000..cb91fd8
--- /dev/null
@@ -0,0 +1,7 @@
+begin;
+
+alter table ttrss_entries add column plugin_data text;
+
+update ttrss_version set schema_version = 103;
+
+commit;