]> git.wh0rd.org - tt-rss.git/commitdiff
update default of allow_duplicate_posts to false, bump schema
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 9 Apr 2013 18:26:38 +0000 (22:26 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 9 Apr 2013 18:26:38 +0000 (22:26 +0400)
include/functions.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/versions/mysql/116.sql [new file with mode: 0644]
schema/versions/pgsql/116.sql [new file with mode: 0644]

index c4eed06a15c452ecfccefb99d08cbac478ec88b5..ddb719507c24df2f53157ee16da5a661b70e6c45 100644 (file)
@@ -1,6 +1,6 @@
 <?php
        define('EXPECTED_CONFIG_VERSION', 26);
-       define('SCHEMA_VERSION', 115);
+       define('SCHEMA_VERSION', 116);
 
        define('LABEL_BASE_INDEX', -1024);
        define('PLUGIN_FEED_BASE_INDEX', -128);
index 40c256f624f0654ab257ed80baabd0121e042f7a..9ed63f42a8a0faae114e567738cf3c824ff26700 100644 (file)
@@ -298,7 +298,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 (115);
+insert into ttrss_version values (116);
 
 create table ttrss_enclosures (id integer primary key auto_increment,
        content_url text not null,
@@ -347,7 +347,7 @@ create index ttrss_prefs_pref_name_idx on ttrss_prefs(pref_name);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('PURGE_OLD_DAYS', 3, '60', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DEFAULT_UPDATE_INTERVAL', 3, '30', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DEFAULT_ARTICLE_LIMIT', 3, '30', 2);
-insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ALLOW_DUPLICATE_POSTS', 1, 'true', 1);
+insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ALLOW_DUPLICATE_POSTS', 1, 'false', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ENABLE_FEED_CATS', 1, 'true', 2);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SHOW_CONTENT_PREVIEW', 1, 'true', 2);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SHORT_DATE_FORMAT', 2, 'M d, G:i', 3);
index 565271f112ed5340ba3dd607b943b49a7774d283..ec3b778cc2315c59596126d90b1fa5ee128603fb 100644 (file)
@@ -256,7 +256,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 (115);
+insert into ttrss_version values (116);
 
 create table ttrss_enclosures (id serial not null primary key,
        content_url text not null,
@@ -298,7 +298,7 @@ create index ttrss_prefs_pref_name_idx on ttrss_prefs(pref_name);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('PURGE_OLD_DAYS', 3, '60', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DEFAULT_UPDATE_INTERVAL', 3, '30', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DEFAULT_ARTICLE_LIMIT', 3, '30', 2);
-insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ALLOW_DUPLICATE_POSTS', 1, 'true', 1);
+insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ALLOW_DUPLICATE_POSTS', 1, 'false', 1);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ENABLE_FEED_CATS', 1, 'true', 2);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SHOW_CONTENT_PREVIEW', 1, 'true', 2);
 insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SHORT_DATE_FORMAT', 2, 'M d, G:i', 3);
diff --git a/schema/versions/mysql/116.sql b/schema/versions/mysql/116.sql
new file mode 100644 (file)
index 0000000..252ba0e
--- /dev/null
@@ -0,0 +1,7 @@
+begin;
+
+update ttrss_prefs set def_value = 'false' where pref_name = 'ALLOW_DUPLICATE_POSTS';
+
+update ttrss_version set schema_version = 116;
+
+commit;
diff --git a/schema/versions/pgsql/116.sql b/schema/versions/pgsql/116.sql
new file mode 100644 (file)
index 0000000..252ba0e
--- /dev/null
@@ -0,0 +1,7 @@
+begin;
+
+update ttrss_prefs set def_value = 'false' where pref_name = 'ALLOW_DUPLICATE_POSTS';
+
+update ttrss_version set schema_version = 116;
+
+commit;