summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-11-17 11:33:13 +0100
committerAndrew Dolgov <[email protected]>2007-11-17 11:33:13 +0100
commitaa6d1e9766b92029b5219201ba7d1081b687c0f9 (patch)
treee196cee04d4bed09554b43001af6f53913bcd89f /schema
parent963d33141c30ce4663410eb48d66fa50d8e56701 (diff)
schema: enclosure fixes
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.sql9
4 files changed, 7 insertions, 5 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index d3792b9e4..c239d6d08 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -208,6 +208,7 @@ create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
content_type varchar(250) not null,
post_id integer not null,
+ title 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 bf6397f2d..0b9eda212 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -186,6 +186,7 @@ insert into ttrss_version values (26);
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,
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 5ca7aeb86..75fe24582 100644
--- a/schema/versions/mysql/26.sql
+++ b/schema/versions/mysql/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,
post_id integer not null,
+ title 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 b597c2940..fa1c812ed 100644
--- a/schema/versions/pgsql/26.sql
+++ b/schema/versions/pgsql/26.sql
@@ -4,10 +4,9 @@ alter table ttrss_users add column created timestamp;
alter table ttrss_users alter column created set default null;
create table ttrss_enclosures (id serial not null primary key,
- content_url text not null,
- content_type varchar(250) not null,
- post_id integer not null,
- index (post_id),
- foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);
+ content_url text not null,
+ content_type varchar(250) not null,
+ title text not null,
+ post_id integer references ttrss_entries(id) ON DELETE cascade NOT NULL);
update ttrss_version set schema_version = 26;