ttrss/sql/mysql/migrations/87.sql

15 lines
464 B
MySQL
Raw Normal View History

begin;
alter table ttrss_filters add column cat_filter bool;
2011-12-27 12:27:46 +00:00
update ttrss_filters set cat_filter = false;
alter table ttrss_filters change cat_filter cat_filter bool not null;
alter table ttrss_filters alter column cat_filter set default false;
alter table ttrss_filters add column cat_id integer;
alter table ttrss_filters add FOREIGN KEY (cat_id) REFERENCES ttrss_feed_categories(id) ON DELETE CASCADE;
update ttrss_version set schema_version = 87;
commit;