<?php
define('EXPECTED_CONFIG_VERSION', 26);
- define('SCHEMA_VERSION', 116);
+ define('SCHEMA_VERSION', 117);
define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128);
return $icon_file;
}
}
-
+
function calculate_avg_color($iconFile) {
-
+
require_once "lib/floIcon.php";
-
+
$imgInfo = @getimagesize($iconFile);
-
+
if(strtolower($imgInfo['mime'])=='image/vnd.microsoft.icon') {
$ico = new floIcon();
@$ico->readICO($iconFile);
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 '',
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,
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,
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,
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;