diff options
Diffstat (limited to 'schema')
-rw-r--r-- | schema/ttrss_schema_mysql.sql | 3 | ||||
-rw-r--r-- | schema/ttrss_schema_pgsql.sql | 3 | ||||
-rw-r--r-- | schema/upgrade-1.0.6-1.0.7-pgsql.sql | 8 |
3 files changed, 12 insertions, 2 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 26ace74c2..f7eefa672 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 cc9cec5dc..2ab310cc5 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 cd31f1375..123da12e3 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; |