1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:45:55 +00:00

Update schema for size support of enclosures

This commit is contained in:
Felix Eckhofer
2014-07-15 14:53:11 +02:00
parent 1da6e22006
commit 06c4c9ebae
5 changed files with 23 additions and 3 deletions

View File

@@ -261,13 +261,15 @@ 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 (125);
insert into ttrss_version values (126);
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,
width integer not null default 0,
height integer not null default 0,
post_id integer references ttrss_entries(id) ON DELETE cascade NOT NULL);
create index ttrss_enclosures_post_id_idx on ttrss_enclosures(post_id);