schema: enclosure fixes

This commit is contained in:
Andrew Dolgov 2007-11-17 11:33:13 +01:00
parent 963d33141c
commit aa6d1e9766
4 changed files with 7 additions and 5 deletions

View file

@ -208,6 +208,7 @@ create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,
content_type varchar(250) not null, content_type varchar(250) not null,
post_id integer not null, post_id integer not null,
title text not null,
index (post_id), index (post_id),
foreign key (post_id) references ttrss_entries(id) ON DELETE cascade); foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);

View file

@ -186,6 +186,7 @@ insert into ttrss_version values (26);
create table ttrss_enclosures (id serial not null primary key, create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,
content_type varchar(250) not null, content_type varchar(250) not null,
title text not null,
post_id integer references ttrss_entries(id) ON DELETE cascade 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, create table ttrss_prefs_types (id integer not null primary key,

View file

@ -7,6 +7,7 @@ create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,
content_type varchar(250) not null, content_type varchar(250) not null,
post_id integer not null, post_id integer not null,
title text not null,
index (post_id), index (post_id),
foreign key (post_id) references ttrss_entries(id) ON DELETE cascade); foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);

View file

@ -6,8 +6,7 @@ alter table ttrss_users alter column created set default null;
create table ttrss_enclosures (id serial not null primary key, create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,
content_type varchar(250) not null, content_type varchar(250) not null,
post_id integer not null, title text not null,
index (post_id), post_id integer references ttrss_entries(id) ON DELETE cascade NOT NULL);
foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);
update ttrss_version set schema_version = 26; update ttrss_version set schema_version = 26;