]> git.wh0rd.org - tt-rss.git/commitdiff
switch AUTO_ASSIGN_LABELS to off by default (bump schema)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 30 May 2013 14:26:56 +0000 (18:26 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 30 May 2013 14:26:56 +0000 (18:26 +0400)
include/functions.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/versions/mysql/121.sql [new file with mode: 0644]
schema/versions/pgsql/121.sql [new file with mode: 0644]

index 8dc109f993924fc1d624ab52e822b038150f7397..a4b604e7dfbeaa0ee1b4e3b20887182efe6164f0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
        define('EXPECTED_CONFIG_VERSION', 26);
-       define('SCHEMA_VERSION', 120);
+       define('SCHEMA_VERSION', 121);
 
        define('LABEL_BASE_INDEX', -1024);
        define('PLUGIN_FEED_BASE_INDEX', -128);
index e8d5f64b941ff18a3f2a2abe3cee15184b088414..8ba57e12308c5333d5f8bb0e574df0a65a7ab386 100644 (file)
@@ -301,7 +301,7 @@ create table ttrss_tags (id integer primary key auto_increment,
 
 create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
 
-insert into ttrss_version values (120);
+insert into ttrss_version values (121);
 
 create table ttrss_enclosures (id integer primary key auto_increment,
        content_url text not null,
@@ -394,7 +394,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SSL_CER
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DIGEST_PREFERRED_TIME', 2, '00:00', 4);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_PREFS_SHOW_EMPTY_CATS', 1, 'false', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_DEFAULT_INCLUDE_CHILDREN', 1, 'false', 1);
-insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('AUTO_ASSIGN_LABELS', 1, 'true', 3);
+insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('AUTO_ASSIGN_LABELS', 1, 'false', 3);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_ENABLED_PLUGINS', 2, '', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_REVERSE_HEADLINES', 1, 'false', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('USER_CSS_THEME', 2, '', 2);
index feb5cece390e0773d1eb2df912e00011600971cd..9d0337a0701165f082fdec036ae0b06855f078e5 100644 (file)
@@ -259,7 +259,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 (120);
+insert into ttrss_version values (121);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
@@ -345,7 +345,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SSL_CER
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DIGEST_PREFERRED_TIME', 2, '00:00', 4);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_PREFS_SHOW_EMPTY_CATS', 1, 'false', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_DEFAULT_INCLUDE_CHILDREN', 1, 'false', 1);
-insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('AUTO_ASSIGN_LABELS', 1, 'true', 3);
+insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('AUTO_ASSIGN_LABELS', 1, 'false', 3);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_ENABLED_PLUGINS', 2, '', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_REVERSE_HEADLINES', 1, 'false', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('USER_CSS_THEME', 2, '', 2);
diff --git a/schema/versions/mysql/121.sql b/schema/versions/mysql/121.sql
new file mode 100644 (file)
index 0000000..d9cf511
--- /dev/null
@@ -0,0 +1,7 @@
+begin;
+
+update ttrss_prefs set def_value = 'false' where pref_name = 'AUTO_ASSIGN_LABELS';
+
+update ttrss_version set schema_version = 121;
+
+commit;
diff --git a/schema/versions/pgsql/121.sql b/schema/versions/pgsql/121.sql
new file mode 100644 (file)
index 0000000..d9cf511
--- /dev/null
@@ -0,0 +1,7 @@
+begin;
+
+update ttrss_prefs set def_value = 'false' where pref_name = 'AUTO_ASSIGN_LABELS';
+
+update ttrss_version set schema_version = 121;
+
+commit;