From: Andrew Dolgov Date: Mon, 15 Apr 2013 10:54:17 +0000 (+0400) Subject: fix schema for favicon_avg_color X-Git-Tag: 1.7.9~25^2~222 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=14118af36f2ba65a4e5151ee33b6ad565492cbf0;p=tt-rss.git fix schema for favicon_avg_color --- diff --git a/include/functions.php b/include/functions.php index 1ae5bbbe..46882c38 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1,6 +1,6 @@ readICO($iconFile); diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 9ed63f42..3773d9a4 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -108,6 +108,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key, purge_interval integer not null default 0, last_updated datetime default 0, last_error varchar(250) not null default '', + favicon_avg_color varchar(11) default null, site_url varchar(250) not null default '', auth_login 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; -insert into ttrss_version values (116); +insert into ttrss_version values (117); create table ttrss_enclosures (id integer primary key auto_increment, content_url text not null, diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index ec3b778c..3fc58555 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -70,6 +70,7 @@ create table ttrss_feeds (id serial not null primary key, purge_interval integer not null default 0, last_updated timestamp default null, last_error text not null default '', + favicon_avg_color varchar(11) default null, site_url 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, @@ -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); -insert into ttrss_version values (116); +insert into ttrss_version values (117); create table ttrss_enclosures (id serial not null primary key, content_url text not null, diff --git a/schema/versions/mysql/117.sql b/schema/versions/mysql/117.sql index 008f819e..da3d056c 100644 --- a/schema/versions/mysql/117.sql +++ b/schema/versions/mysql/117.sql @@ -1,6 +1,7 @@ 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;