From 9a61ce6d2037813a20ed1e0bcbed4a530d90514a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 21 Aug 2006 07:12:09 +0100 Subject: [PATCH] add upgrade schema files for 1.2.3, new option: DIGEST_ENABLE --- config.php-dist | 3 +++ schema/ttrss_schema_mysql.sql | 3 +++ schema/ttrss_schema_pgsql.sql | 3 +++ schema/upgrade-1.2.2-1.2.3-mysql.sql | 3 +++ schema/upgrade-1.2.2-1.2.3-pgsql.sql | 3 +++ 5 files changed, 15 insertions(+) create mode 100644 schema/upgrade-1.2.2-1.2.3-mysql.sql create mode 100644 schema/upgrade-1.2.2-1.2.3-pgsql.sql diff --git a/config.php-dist b/config.php-dist index 704c060a5..5b6086449 100644 --- a/config.php-dist +++ b/config.php-dist @@ -134,6 +134,9 @@ define('USE_CURL_FOR_ICONS', false); // Fetch favicons using CURL, useful if your PHP has disabled remote fopen() + define('DIGEST_HOSTNAME', 'madoka.spb.ru'); + // Hostname for email digest signature + define('CONFIG_VERSION', 4); // Expected config version. Please update this option in config.php // if necessary (after migrating all new options from this file). diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index b6bf13426..9894caab9 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -259,6 +259,9 @@ 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) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2); +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable email digest',1, +'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); + create table ttrss_user_prefs ( owner_uid integer not null, pref_name varchar(250), diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 81c865af9..0b2ec835d 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -239,6 +239,9 @@ 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) values('REVERSE_HEADLINES', 1, 'false', 'Reverse headline order (oldest first)',2); +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable email digest',1, +'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); + create table ttrss_user_prefs ( owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, pref_name varchar(250) not null references ttrss_prefs(pref_name) ON DELETE CASCADE, diff --git a/schema/upgrade-1.2.2-1.2.3-mysql.sql b/schema/upgrade-1.2.2-1.2.3-mysql.sql new file mode 100644 index 000000000..25213d9c9 --- /dev/null +++ b/schema/upgrade-1.2.2-1.2.3-mysql.sql @@ -0,0 +1,3 @@ +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable email digest',1, +'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); + diff --git a/schema/upgrade-1.2.2-1.2.3-pgsql.sql b/schema/upgrade-1.2.2-1.2.3-pgsql.sql new file mode 100644 index 000000000..25213d9c9 --- /dev/null +++ b/schema/upgrade-1.2.2-1.2.3-pgsql.sql @@ -0,0 +1,3 @@ +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable email digest',1, +'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); +