From: Andrew Dolgov Date: Fri, 1 Apr 2011 11:32:27 +0000 (+0400) Subject: schema: mysql: remove foreign key to ttrss_themes before dropping theme_id from ttrss... X-Git-Tag: 1.5.3~83 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=dd0345769a772272bcca7be2ecbfd107012c9d57;p=tt-rss.git schema: mysql: remove foreign key to ttrss_themes before dropping theme_id from ttrss_users --- diff --git a/schema/versions/mysql/83.sql b/schema/versions/mysql/83.sql index 6c7d5ce4..5e791b23 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;