From dd0345769a772272bcca7be2ecbfd107012c9d57 Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Fri, 1 Apr 2011 15:32:27 +0400
Subject: schema: mysql: remove foreign key to ttrss_themes before dropping
 theme_id from ttrss_users

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

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

diff --git a/schema/versions/mysql/83.sql b/schema/versions/mysql/83.sql
index 6c7d5ce42..5e791b23d 100644
--- a/schema/versions/mysql/83.sql
+++ b/schema/versions/mysql/83.sql
@@ -24,7 +24,9 @@ update ttrss_feeds set pubsub_state = 0;
 alter table ttrss_feeds change pubsub_state pubsub_state integer not null;
 alter table ttrss_feeds alter column pubsub_state set default 0;
 
+alter table ttrss_users drop foreign key ttrss_users_ibfk_1
 alter table ttrss_users drop column theme_id;
+
 drop table ttrss_themes;
 
 update ttrss_version set schema_version = 83;
-- 
cgit v1.2.3

