summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-21 22:08:38 +0400
committerAndrew Dolgov <[email protected]>2013-02-21 22:08:38 +0400
commit7bfb3dabdd5cca802b73b473e8f49a2f0952852f (patch)
tree309b6d83a32ae2c9b858f2d60cecf958e903e682 /schema
parent6afcbcd1a56e5dc405c8d4c9ab8f64c2b243f4f1 (diff)
add ttrss_user_entries.plugin_data (bump schema)
Diffstat (limited to 'schema')
-rw-r--r--schema/ttrss_schema_mysql.sql3
-rw-r--r--schema/ttrss_schema_pgsql.sql3
-rw-r--r--schema/versions/mysql/103.sql7
-rw-r--r--schema/versions/pgsql/103.sql7
4 files changed, 18 insertions, 2 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 10320b5b7..5b2fb92dc 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -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,
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 33c32d181..04ac6e867 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -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
index 000000000..6a93b80b8
--- /dev/null
+++ b/schema/versions/mysql/103.sql
@@ -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
index 000000000..cb91fd871
--- /dev/null
+++ b/schema/versions/pgsql/103.sql
@@ -0,0 +1,7 @@
+begin;
+
+alter table ttrss_entries add column plugin_data text;
+
+update ttrss_version set schema_version = 103;
+
+commit;