begin;

alter table ttrss_filters add column inverse boolean;
update ttrss_filters set inverse = false;
alter table ttrss_filters alter column inverse set not null;
alter table ttrss_filters alter column inverse set default false;

update ttrss_version set schema_version = 13;

commit;