From 963d33141c30ce4663410eb48d66fa50d8e56701 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sat, 17 Nov 2007 11:16:24 +0100
Subject: schema: add support for enclosures

---
 schema/versions/mysql/26.sql | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'schema/versions/mysql/26.sql')

diff --git a/schema/versions/mysql/26.sql b/schema/versions/mysql/26.sql
index 513be9a6e..5ca7aeb86 100644
--- a/schema/versions/mysql/26.sql
+++ b/schema/versions/mysql/26.sql
@@ -3,4 +3,11 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) valu
 alter table ttrss_users add column created datetime;
 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);
+
 update ttrss_version set schema_version = 26;
-- 
cgit v1.2.3

