From: Andrew Dolgov Date: Sun, 12 Feb 2006 09:59:29 +0000 (+0100) Subject: move 1.1.1-1.1.2 upgrade scripts to obsolete X-Git-Tag: 1.1.3~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7afb0f019d742c1ada08c800512a60c84fa93952;p=tt-rss.git move 1.1.1-1.1.2 upgrade scripts to obsolete --- diff --git a/schema/obsolete/upgrade-1.1.1-1.1.2-mysql.sql b/schema/obsolete/upgrade-1.1.1-1.1.2-mysql.sql new file mode 100644 index 00000000..6dfc5f82 --- /dev/null +++ b/schema/obsolete/upgrade-1.1.1-1.1.2-mysql.sql @@ -0,0 +1,17 @@ +begin; + +alter table ttrss_feeds add column parent_feed integer; +alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null; + +alter table ttrss_feeds add column private bool; + +update ttrss_feeds set private = false; + +alter table ttrss_feeds change private private bool not null; +alter table ttrss_feeds alter column private set default 0; + +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_FEEDS', 1, 'false', 'Hide feeds with no unread messages',2); + +update ttrss_version set schema_version = 4; + +commit; diff --git a/schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql b/schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql new file mode 100644 index 00000000..1f926eae --- /dev/null +++ b/schema/obsolete/upgrade-1.1.1-1.1.2-pgsql.sql @@ -0,0 +1,17 @@ +begin; + +alter table ttrss_feeds add column parent_feed integer; +alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null; + +alter table ttrss_feeds add column private boolean; + +update ttrss_feeds set private = false; + +alter table ttrss_feeds alter column private set not null; +alter table ttrss_feeds alter column private set default false; + +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_FEEDS', 1, 'false', 'Hide feeds with no unread messages',2); + +update ttrss_version set schema_version = 4; + +commit; diff --git a/schema/upgrade-1.1.1-1.1.2-mysql.sql b/schema/upgrade-1.1.1-1.1.2-mysql.sql deleted file mode 100644 index 6dfc5f82..00000000 --- a/schema/upgrade-1.1.1-1.1.2-mysql.sql +++ /dev/null @@ -1,17 +0,0 @@ -begin; - -alter table ttrss_feeds add column parent_feed integer; -alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null; - -alter table ttrss_feeds add column private bool; - -update ttrss_feeds set private = false; - -alter table ttrss_feeds change private private bool not null; -alter table ttrss_feeds alter column private set default 0; - -insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_FEEDS', 1, 'false', 'Hide feeds with no unread messages',2); - -update ttrss_version set schema_version = 4; - -commit; diff --git a/schema/upgrade-1.1.1-1.1.2-pgsql.sql b/schema/upgrade-1.1.1-1.1.2-pgsql.sql deleted file mode 100644 index 1f926eae..00000000 --- a/schema/upgrade-1.1.1-1.1.2-pgsql.sql +++ /dev/null @@ -1,17 +0,0 @@ -begin; - -alter table ttrss_feeds add column parent_feed integer; -alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null; - -alter table ttrss_feeds add column private boolean; - -update ttrss_feeds set private = false; - -alter table ttrss_feeds alter column private set not null; -alter table ttrss_feeds alter column private set default false; - -insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_FEEDS', 1, 'false', 'Hide feeds with no unread messages',2); - -update ttrss_version set schema_version = 4; - -commit;