From: Andrew Dolgov Date: Wed, 2 Nov 2005 11:53:06 +0000 (+0100) Subject: reserve column in ttrss_feeds for site url (schema+upgrade script updated) X-Git-Tag: 1.0.7~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=37d379de29265eb18622984575fb45c8fe89f647;p=tt-rss.git reserve column in ttrss_feeds for site url (schema+upgrade script updated) --- diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 26ace74c..f7eefa67 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -8,7 +8,8 @@ create table ttrss_feeds (id integer not null auto_increment primary key, icon_url varchar(250) not null default '', update_interval integer not null default 0, last_updated datetime default '', - last_error text not null default '') TYPE=InnoDB; + last_error text not null default '', + site_url varchar(250) not null default '') TYPE=InnoDB; insert into ttrss_feeds (title,feed_url) values ('Footnotes', 'http://gnomedesktop.org/node/feed'); insert into ttrss_feeds (title,feed_url) values ('Freedesktop.org', 'http://planet.freedesktop.org/rss20.xml'); diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index cc9cec5d..2ab310cc 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -8,7 +8,8 @@ create table ttrss_feeds (id serial not null primary key, icon_url varchar(250) not null default '', update_interval integer not null default 0, last_updated timestamp default null, - last_error text not null default ''); + last_error text not null default '', + site_url varchar(250) not null default ''); insert into ttrss_feeds (title,feed_url) values ('Footnotes', 'http://gnomedesktop.org/node/feed'); insert into ttrss_feeds (title,feed_url) values ('Freedesktop.org', 'http://planet.freedesktop.org/rss20.xml'); diff --git a/schema/upgrade-1.0.6-1.0.7-pgsql.sql b/schema/upgrade-1.0.6-1.0.7-pgsql.sql index cd31f137..123da12e 100644 --- a/schema/upgrade-1.0.6-1.0.7-pgsql.sql +++ b/schema/upgrade-1.0.6-1.0.7-pgsql.sql @@ -1,7 +1,15 @@ +begin; + alter table ttrss_feeds add column last_error text; +alter table ttrss_feeds add column site_url varchar(250) not null default ''; update ttrss_feeds set last_error = ''; +update ttrss_feeds set site_url = ''; alter table ttrss_feeds alter column last_error set not null; alter table ttrss_feeds alter column last_error set default ''; +alter table ttrss_feeds alter column site_url set not null; +alter table ttrss_feeds alter column site_url set default ''; + +commit;