fix schema for favicon_avg_color

This commit is contained in:
Andrew Dolgov 2013-04-15 14:54:17 +04:00
parent 2cfbb448fb
commit 14118af36f
4 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
define('EXPECTED_CONFIG_VERSION', 26); define('EXPECTED_CONFIG_VERSION', 26);
define('SCHEMA_VERSION', 116); define('SCHEMA_VERSION', 117);
define('LABEL_BASE_INDEX', -1024); define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128); define('PLUGIN_FEED_BASE_INDEX', -128);

View File

@ -108,6 +108,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
purge_interval integer not null default 0, purge_interval integer not null default 0,
last_updated datetime default 0, last_updated datetime default 0,
last_error varchar(250) not null default '', last_error varchar(250) not null default '',
favicon_avg_color varchar(11) default null,
site_url varchar(250) not null default '', site_url varchar(250) not null default '',
auth_login varchar(250) not null default '', auth_login varchar(250) not null default '',
auth_pass varchar(250) not null default '', auth_pass varchar(250) not null default '',
@ -298,7 +299,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8; create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_version values (116); insert into ttrss_version values (117);
create table ttrss_enclosures (id integer primary key auto_increment, create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null, content_url text not null,

View File

@ -70,6 +70,7 @@ create table ttrss_feeds (id serial not null primary key,
purge_interval integer not null default 0, purge_interval integer not null default 0,
last_updated timestamp default null, last_updated timestamp default null,
last_error text not null default '', last_error text not null default '',
favicon_avg_color varchar(11) default null,
site_url varchar(250) not null default '', site_url varchar(250) not null default '',
auth_login varchar(250) not null default '', auth_login varchar(250) not null default '',
parent_feed integer default null references ttrss_feeds(id) on delete set null, parent_feed integer default null references ttrss_feeds(id) on delete set null,
@ -256,7 +257,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id);
create table ttrss_version (schema_version int not null); create table ttrss_version (schema_version int not null);
insert into ttrss_version values (116); insert into ttrss_version values (117);
create table ttrss_enclosures (id serial not null primary key, create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,

View File

@ -1,6 +1,7 @@
begin; begin;
ALTER TABLE `ttrss_feeds` ADD favicon_avg_color VARCHAR(11) ALTER TABLE ttrss_feeds ADD COLUMN favicon_avg_color VARCHAR(11);
alter table ttrss_feeds alter column favicon_avg_color set default null;
update ttrss_version set schema_version = 117; update ttrss_version set schema_version = 117;