]> git.wh0rd.org - tt-rss.git/commitdiff
change description of CDM_AUTO_CATCHUP (bump schema)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 6 Mar 2011 06:51:32 +0000 (09:51 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 6 Mar 2011 06:55:40 +0000 (09:55 +0300)
sanity_check.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/versions/mysql/80.sql [new file with mode: 0644]
schema/versions/pgsql/80.sql [new file with mode: 0644]

index ad93b0cc7f80eaeed03fd641c3b70d15abcc691c..83dacb15c00d73b0b32693804d30d2b15674d206 100644 (file)
@@ -2,7 +2,7 @@
        require_once "functions.php";
 
        define('EXPECTED_CONFIG_VERSION', 21);
-       define('SCHEMA_VERSION', 79);
+       define('SCHEMA_VERSION', 80);
 
        if (!file_exists("config.php")) {
                print "<b>Fatal Error</b>: You forgot to copy 
index c1d080e2ee6ab3abb303fcb11d30a0745ccab81e..71798421011717c4d75b6849e2a4e7cf581829b8 100644 (file)
@@ -258,7 +258,7 @@ create table ttrss_tags (id integer primary key auto_increment,
 
 create table ttrss_version (schema_version int not null) TYPE=InnoDB DEFAULT CHARSET=UTF8;
 
-insert into ttrss_version values (79);
+insert into ttrss_version values (80);
 
 create table ttrss_enclosures (id integer primary key auto_increment,
        content_url text not null,
@@ -335,7 +335,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('CONFIRM_FEED_CATCHUP', 1, 'true', 'Confirm marking feed as read',3);
 
-insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('CDM_AUTO_CATCHUP', 1, 'false', 'Mark articles as read automatically',2, 'This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list.');
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('CDM_AUTO_CATCHUP', 1, 'false', 'Automatically mark articles as read',3, 'This option enables marking articles as read automatically while you scroll article list.');
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_DEFAULT_VIEW_MODE', 2, 'adaptive', '', 1);
 
index e0973bdcc53f46e8853b112dce91ab7610adbdcf..cb0d39ea616560858afcaab15ff177e822493164 100644 (file)
@@ -229,7 +229,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id);
 
 create table ttrss_version (schema_version int not null);
 
-insert into ttrss_version values (79);
+insert into ttrss_version values (80);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
@@ -299,7 +299,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('CONFIRM_FEED_CATCHUP', 1, 'true', 'Confirm marking feed as read',3);
 
-insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('CDM_AUTO_CATCHUP', 1, 'false', 'Mark articles as read automatically',2, 'This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list.');
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('CDM_AUTO_CATCHUP', 1, 'false', 'Automatically mark articles as read',3, 'This option enables marking articles as read automatically while you scroll article list.');
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_DEFAULT_VIEW_MODE', 2, 'adaptive', '', 1);
 
diff --git a/schema/versions/mysql/80.sql b/schema/versions/mysql/80.sql
new file mode 100644 (file)
index 0000000..df2295c
--- /dev/null
@@ -0,0 +1,9 @@
+begin;
+
+update ttrss_prefs set section_id = 3, 
+       short_desc = 'Automatically mark articles as read',
+       help_text = 'Mark articles as read automatically while you scroll article list.' where pref_name = 'CDM_AUTO_CATCHUP';
+
+update ttrss_version set schema_version = 80;
+
+commit;
diff --git a/schema/versions/pgsql/80.sql b/schema/versions/pgsql/80.sql
new file mode 100644 (file)
index 0000000..df2295c
--- /dev/null
@@ -0,0 +1,9 @@
+begin;
+
+update ttrss_prefs set section_id = 3, 
+       short_desc = 'Automatically mark articles as read',
+       help_text = 'Mark articles as read automatically while you scroll article list.' where pref_name = 'CDM_AUTO_CATCHUP';
+
+update ttrss_version set schema_version = 80;
+
+commit;