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');
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');
+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;