From f574fec6a6cd32f8c1582399cb4796974327df96 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.org.ru>
Date: Mon, 11 May 2009 23:32:16 +0400
Subject: workaround against ttrss_enclosures mysql data being wrong (nukes the
 enclosures table)

---
 schema/versions/mysql/56.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 schema/versions/mysql/56.sql

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

diff --git a/schema/versions/mysql/56.sql b/schema/versions/mysql/56.sql
new file mode 100644
index 000000000..af2fb8209
--- /dev/null
+++ b/schema/versions/mysql/56.sql
@@ -0,0 +1,16 @@
+begin;
+
+drop table ttrss_enclosures;
+
+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,
+	duration text not null,
+	index (post_id),
+	foreign key (post_id) references ttrss_entries(id) ON DELETE cascade) TYPE=InnoDB;
+
+update ttrss_version set schema_version = 56;
+
+commit;
-- 
cgit v1.2.3

