mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:25:56 +00:00
schema: enclosure fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user