2011-03-29 09:54:44 +02:00
|
|
|
begin;
|
|
|
|
|
|
|
|
alter table ttrss_feeds add column mark_unread_on_update boolean;
|
|
|
|
update ttrss_feeds set mark_unread_on_update = false;
|
|
|
|
alter table ttrss_feeds change mark_unread_on_update mark_unread_on_update boolean not null;
|
|
|
|
alter table ttrss_feeds alter column mark_unread_on_update set default false;
|
|
|
|
|
|
|
|
alter table ttrss_feeds add column strip_images boolean;
|
|
|
|
update ttrss_feeds set strip_images = false;
|
|
|
|
alter table ttrss_feeds change strip_images strip_images boolean not null;
|
|
|
|
alter table ttrss_feeds alter column strip_images set default false;
|
|
|
|
|
2011-03-29 10:09:42 +02:00
|
|
|
alter table ttrss_feeds add column update_on_checksum_change boolean;
|
|
|
|
update ttrss_feeds set update_on_checksum_change = false;
|
|
|
|
alter table ttrss_feeds change update_on_checksum_change update_on_checksum_change boolean not null;
|
|
|
|
alter table ttrss_feeds alter column update_on_checksum_change set default false;
|
2011-03-29 09:54:44 +02:00
|
|
|
|
2011-03-29 10:09:42 +02:00
|
|
|
DELETE FROM ttrss_user_prefs WHERE pref_name IN ('HIDE_FEEDLIST', 'SYNC_COUNTERS', 'ENABLE_LABELS', 'ENABLE_SEARCH_TOOLBAR', 'ENABLE_FEED_ICONS', 'ENABLE_OFFLINE_READING', 'EXTENDED_FEEDLIST', 'OPEN_LINKS_IN_NEW_WINDOW', 'ENABLE_FLASH_PLAYER', 'HEADLINES_SMART_DATE', 'MARK_UNREAD_ON_UPDATE', 'UPDATE_POST_ON_CHECKSUM_CHANGE');
|
|
|
|
|
|
|
|
DELETE FROM ttrss_prefs WHERE pref_name IN ('HIDE_FEEDLIST', 'SYNC_COUNTERS', 'ENABLE_LABELS', 'ENABLE_SEARCH_TOOLBAR', 'ENABLE_FEED_ICONS', 'ENABLE_OFFLINE_READING', 'EXTENDED_FEEDLIST', 'OPEN_LINKS_IN_NEW_WINDOW', 'ENABLE_FLASH_PLAYER', 'HEADLINES_SMART_DATE', 'MARK_UNREAD_ON_UPDATE', 'UPDATE_POST_ON_CHECKSUM_CHANGE');
|
2011-03-29 09:54:44 +02:00
|
|
|
|
2011-04-01 11:39:58 +02:00
|
|
|
alter table ttrss_feeds add column pubsub_state integer;
|
|
|
|
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;
|
|
|
|
|
2011-04-01 13:32:27 +02:00
|
|
|
alter table ttrss_users drop foreign key ttrss_users_ibfk_1
|
2011-04-01 13:25:19 +02:00
|
|
|
alter table ttrss_users drop column theme_id;
|
2011-04-01 13:32:27 +02:00
|
|
|
|
2011-04-01 13:25:19 +02:00
|
|
|
drop table ttrss_themes;
|
|
|
|
|
2011-03-29 09:54:44 +02:00
|
|
|
update ttrss_version set schema_version = 83;
|
|
|
|
|
|
|
|
commit;
|