reserve column in ttrss_feeds for site url (schema+upgrade script updated)
This commit is contained in:
parent
32bd6e262f
commit
37d379de29
3 changed files with 12 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue