summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-11-17 13:13:08 +0100
committerAndrew Dolgov <[email protected]>2007-11-17 13:13:08 +0100
commitce53e200b475675389f6903f341d99116f3ef0b7 (patch)
tree1177023c042b36d47b9630808248af04c732551b /schema
parent66a251f901306b8dd5bd856efc75681d68880261 (diff)
add support for enclosures (closes #165)
Diffstat (limited to 'schema')
-rw-r--r--schema/ttrss_schema_mysql.sql1
-rw-r--r--schema/ttrss_schema_pgsql.sql1
-rw-r--r--schema/versions/mysql/26.sql1
-rw-r--r--schema/versions/pgsql/26.sql1
4 files changed, 4 insertions, 0 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index c239d6d08..18f7e0c61 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -209,6 +209,7 @@ create table ttrss_enclosures (id serial not null primary key,
content_type varchar(250) not null,
post_id integer not null,
title text not null,
+ duration text not null,
index (post_id),
foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 0b9eda212..dfb32ca15 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -187,6 +187,7 @@ create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
content_type varchar(250) not null,
title text not null,
+ duration text not null,
post_id integer references ttrss_entries(id) ON DELETE cascade NOT NULL);
create table ttrss_prefs_types (id integer not null primary key,
diff --git a/schema/versions/mysql/26.sql b/schema/versions/mysql/26.sql
index 75fe24582..14d62b8c0 100644
--- a/schema/versions/mysql/26.sql
+++ b/schema/versions/mysql/26.sql
@@ -8,6 +8,7 @@ create table ttrss_enclosures (id serial not null primary key,
content_type varchar(250) not null,
post_id integer not null,
title text not null,
+ duration text not null,
index (post_id),
foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);
diff --git a/schema/versions/pgsql/26.sql b/schema/versions/pgsql/26.sql
index fa1c812ed..c7c1be691 100644
--- a/schema/versions/pgsql/26.sql
+++ b/schema/versions/pgsql/26.sql
@@ -7,6 +7,7 @@ create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
content_type varchar(250) not null,
title text not null,
+ duration text not null,
post_id integer references ttrss_entries(id) ON DELETE cascade NOT NULL);
update ttrss_version set schema_version = 26;