From: Andrew Dolgov Date: Fri, 29 Sep 2006 07:50:02 +0000 (+0100) Subject: schema: move out old upgrade files X-Git-Tag: 1.2.4~76 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f698dd2796650c726e6355ba81901f90c9fa35d2;p=tt-rss.git schema: move out old upgrade files --- diff --git a/schema/obsolete/upgrade-1.2.2-1.2.3-mysql.sql b/schema/obsolete/upgrade-1.2.2-1.2.3-mysql.sql new file mode 100644 index 00000000..e951f482 --- /dev/null +++ b/schema/obsolete/upgrade-1.2.2-1.2.3-mysql.sql @@ -0,0 +1,12 @@ +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable e-mail digest',1, +'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); + +alter table ttrss_feeds add column include_in_digest bool; +update ttrss_feeds set include_in_digest = true; +alter table ttrss_feeds change include_in_digest include_in_digest bool not null; +alter table ttrss_feeds alter column include_in_digest set default true; + +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); + +update ttrss_version set schema_version = 10; + diff --git a/schema/obsolete/upgrade-1.2.2-1.2.3-pgsql.sql b/schema/obsolete/upgrade-1.2.2-1.2.3-pgsql.sql new file mode 100644 index 00000000..764b4b76 --- /dev/null +++ b/schema/obsolete/upgrade-1.2.2-1.2.3-pgsql.sql @@ -0,0 +1,12 @@ +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable e-mail digest',1, +'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); + +alter table ttrss_feeds add column include_in_digest boolean; +update ttrss_feeds set include_in_digest = true; +alter table ttrss_feeds alter column include_in_digest set not null; +alter table ttrss_feeds alter column include_in_digest set default true; + +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); + +update ttrss_version set schema_version = 10; + diff --git a/schema/upgrade-1.2.2-1.2.3-mysql.sql b/schema/upgrade-1.2.2-1.2.3-mysql.sql deleted file mode 100644 index e951f482..00000000 --- a/schema/upgrade-1.2.2-1.2.3-mysql.sql +++ /dev/null @@ -1,12 +0,0 @@ -insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable e-mail digest',1, -'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); - -alter table ttrss_feeds add column include_in_digest bool; -update ttrss_feeds set include_in_digest = true; -alter table ttrss_feeds change include_in_digest include_in_digest bool not null; -alter table ttrss_feeds alter column include_in_digest set default true; - -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); - -update ttrss_version set schema_version = 10; - diff --git a/schema/upgrade-1.2.2-1.2.3-pgsql.sql b/schema/upgrade-1.2.2-1.2.3-pgsql.sql deleted file mode 100644 index 764b4b76..00000000 --- a/schema/upgrade-1.2.2-1.2.3-pgsql.sql +++ /dev/null @@ -1,12 +0,0 @@ -insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable e-mail digest',1, -'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); - -alter table ttrss_feeds add column include_in_digest boolean; -update ttrss_feeds set include_in_digest = true; -alter table ttrss_feeds alter column include_in_digest set not null; -alter table ttrss_feeds alter column include_in_digest set default true; - -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); - -update ttrss_version set schema_version = 10; -