95.sql 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. begin;
  2. update ttrss_prefs set short_desc = 'Purge articles after this number of days (0 - disables)'
  3. where pref_name = 'PURGE_OLD_DAYS';
  4. update ttrss_prefs set section_id = 1 where pref_name = 'ENABLE_API_ACCESS';
  5. update ttrss_prefs set section_id = 2 where pref_name = 'CONFIRM_FEED_CATCHUP';
  6. update ttrss_prefs set section_id = 2 where pref_name = 'CDM_EXPANDED';
  7. update ttrss_prefs set section_id = 2 where pref_name = 'CDM_AUTO_CATCHUP';
  8. update ttrss_prefs set section_id = 2 where pref_name = 'SORT_HEADLINES_BY_FEED_DATE';
  9. update ttrss_prefs set section_id = 2 where pref_name = 'HIDE_READ_SHOWS_SPECIAL';
  10. insert into ttrss_prefs_sections (id, section_name) values (4, 'Digest');
  11. update ttrss_prefs set section_id = 4 where pref_name = 'DIGEST_ENABLE';
  12. update ttrss_prefs set section_id = 4 where pref_name = 'DIGEST_PREFERRED_TIME';
  13. update ttrss_prefs set section_id = 4 where pref_name = 'DIGEST_CATCHUP';
  14. alter table ttrss_prefs_sections add column order_id integer;
  15. update ttrss_prefs_sections set order_id = 0;
  16. alter table ttrss_prefs_sections alter column order_id set not null;
  17. update ttrss_prefs_sections set order_id = 0 where id = 1;
  18. update ttrss_prefs_sections set order_id = 1 where id = 2;
  19. update ttrss_prefs_sections set order_id = 2 where id = 4;
  20. update ttrss_prefs_sections set order_id = 3 where id = 3;
  21. update ttrss_prefs set access_level = 1 where pref_name in ('ON_CATCHUP_SHOW_NEXT_FEED',
  22. 'SORT_HEADLINES_BY_FEED_DATE',
  23. 'VFEED_GROUP_BY_FEED',
  24. 'FRESH_ARTICLE_MAX_AGE',
  25. 'CDM_EXPANDED',
  26. 'SHOW_CONTENT_PREVIEW',
  27. 'HIDE_READ_SHOWS_SPECIAL');
  28. update ttrss_version set schema_version = 95;
  29. commit;