diff options
author | Andrew Dolgov <[email protected]> | 2007-11-17 11:16:24 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-11-17 11:16:24 +0100 |
commit | 963d33141c30ce4663410eb48d66fa50d8e56701 (patch) | |
tree | da3439b5c85f3236fc9ff31524de8e8702ec086a /schema/ttrss_schema_mysql.sql | |
parent | efae7595c4bbb47c4f86e9b142120bb3e5bc887e (diff) |
schema: add support for enclosures
Diffstat (limited to 'schema/ttrss_schema_mysql.sql')
-rw-r--r-- | schema/ttrss_schema_mysql.sql | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 970afb06e..d3792b9e4 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -11,6 +11,7 @@ drop table if exists ttrss_prefs; drop table if exists ttrss_prefs_types; drop table if exists ttrss_prefs_sections; drop table if exists ttrss_tags; +drop table if exists ttrss_enclosures; drop table if exists ttrss_entry_comments; drop table if exists ttrss_user_entries; drop table if exists ttrss_entries; @@ -203,6 +204,13 @@ create table ttrss_version (schema_version int not null) TYPE=InnoDB; 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, + post_id integer not null, + index (post_id), + foreign key (post_id) references ttrss_entries(id) ON DELETE cascade); + create table ttrss_prefs_types (id integer not null primary key, type_name varchar(100) not null) TYPE=InnoDB; |