From ab1c2c9de5951a8b6c857708f12ec280db03575f Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Thu, 12 Jan 2006 14:19:13 +0100
Subject: schema: support for audio enclosure in ttrss_entries

---
 schema/upgrade-1.1.1-1.1.2-mysql.sql | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'schema/upgrade-1.1.1-1.1.2-mysql.sql')

diff --git a/schema/upgrade-1.1.1-1.1.2-mysql.sql b/schema/upgrade-1.1.1-1.1.2-mysql.sql
index 6dfc5f82f..1501a8c58 100644
--- a/schema/upgrade-1.1.1-1.1.2-mysql.sql
+++ b/schema/upgrade-1.1.1-1.1.2-mysql.sql
@@ -1,5 +1,3 @@
-begin;
-
 alter table ttrss_feeds add column parent_feed integer;
 alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null;
 
@@ -14,4 +12,8 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) valu
 
 update ttrss_version set schema_version = 4;
 
-commit;
+alter table ttrss_entries add column audio_enclosure varchar(250);
+update ttrss_entries set audio_enclosure = '';
+alter table ttrss_entries change audio_enclosure private varchar(250) not null;
+alter table ttrss_entries alter column audio_enclosure set default '';
+
-- 
cgit v1.2.3-54-g00ecf

