]> git.wh0rd.org - tt-rss.git/commitdiff
update BLACKLISTED_TAGS, bump schema (closes #186)
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 Jan 2008 05:59:43 +0000 (06:59 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 14 Jan 2008 05:59:43 +0000 (06:59 +0100)
sanity_check.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/versions/mysql/28.sql [new file with mode: 0644]
schema/versions/pgsql/28.sql [new file with mode: 0644]

index 1f0706dc06d1fb9ea6a4956edecc656f60723497..de582760f4f6dbc34f59eb401ac369a52accd546 100644 (file)
@@ -2,7 +2,7 @@
        require_once "functions.php";
 
        define('EXPECTED_CONFIG_VERSION', 13);
-       define('SCHEMA_VERSION', 27);
+       define('SCHEMA_VERSION', 28);
 
        if (!file_exists("config.php")) {
                print __("<b>Fatal Error</b>: You forgot to copy 
index 21f4bebbb2822fced7f56c71f6d1fa8fdf584185..b4da8dbfcc151cc4f3b88542e9affa0705dc3aa2 100644 (file)
@@ -203,7 +203,7 @@ create table ttrss_tags (id integer primary key auto_increment,
 
 create table ttrss_version (schema_version int not null) TYPE=InnoDB;
 
-insert into ttrss_version values (27);
+insert into ttrss_version values (28);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
@@ -301,7 +301,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) valu
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('STRIP_UNSAFE_TAGS', 1, 'true', 'Strip unsafe tags from articles', 3,
 'Strip all but most common HTML tags when reading articles.');
 
-insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('BLACKLISTED_TAGS', 2, 'main, generic, misc', 'Blacklisted tags', 3,
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('BLACKLISTED_TAGS', 2, 'main, generic, misc, uncategorized, blog, blogroll, general, news', 'Blacklisted tags', 3,
 'When auto-detecting tags in articles these tags will not be applied (comma-separated list).');
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('ENABLE_SEARCH_TOOLBAR', 1, 'false', 'Enable search toolbar',2);
index bb30e85ee6a2847b51337c92a39bd1971dabe326..1a3ab1f0f455ac762962acf75b395f380befb351 100644 (file)
@@ -182,7 +182,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
 
 create table ttrss_version (schema_version int not null);
 
-insert into ttrss_version values (27);
+insert into ttrss_version values (28);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
@@ -274,7 +274,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) valu
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('STRIP_UNSAFE_TAGS', 1, 'true', 'Strip unsafe tags from articles', 3,
 'Strip all but most common HTML tags when reading articles.');
 
-insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('BLACKLISTED_TAGS', 2, 'main, generic, misc', 'Blacklisted tags', 3,
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('BLACKLISTED_TAGS', 2, 'main, generic, misc, uncategorized, blog, blogroll, general, news', 'Blacklisted tags', 3,
 'When auto-detecting tags in articles these tags will not be applied (comma-separated list).');
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('ENABLE_SEARCH_TOOLBAR', 1, 'false', 'Enable search toolbar',2);
diff --git a/schema/versions/mysql/28.sql b/schema/versions/mysql/28.sql
new file mode 100644 (file)
index 0000000..ffdf844
--- /dev/null
@@ -0,0 +1,3 @@
+UPDATE ttrss_prefs SET def_value = 'main, generic, misc, uncategorized, blog, blogroll, general, news' WHERE pref_name = 'BLACKLISTED_TAGS';
+
+update ttrss_version set schema_version = 28;
diff --git a/schema/versions/pgsql/28.sql b/schema/versions/pgsql/28.sql
new file mode 100644 (file)
index 0000000..ffdf844
--- /dev/null
@@ -0,0 +1,3 @@
+UPDATE ttrss_prefs SET def_value = 'main, generic, misc, uncategorized, blog, blogroll, general, news' WHERE pref_name = 'BLACKLISTED_TAGS';
+
+update ttrss_version set schema_version = 28;