require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 17);
- define('SCHEMA_VERSION', 47);
+ define('SCHEMA_VERSION', 48);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
-- SET NAMES utf8;
-- SET CHARACTER SET utf8;
+drop table if exists ttrss_feedbrowser_cache;
drop table if exists ttrss_version;
drop table if exists ttrss_labels;
drop table if exists ttrss_filters;
index (id),
index (expire)) TYPE=InnoDB;
+create table ttrss_feedbrowser_cache (
+ feed_url text not null,
+ subscribers integer not null);
+
commit;
+drop table ttrss_feedbrowser_cache;
drop table ttrss_version;
drop table ttrss_labels;
drop table ttrss_filters;
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (47);
+insert into ttrss_version values (48);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
create function SUBSTRING_FOR_DATE(timestamp, int, int) RETURNS text AS 'SELECT SUBSTRING(CAST($1 AS text), $2, $3)' LANGUAGE 'sql';
+create table ttrss_feedbrowser_cache (
+ feed_url text not null primary key,
+ subscribers integer not null);
+
commit;
--- /dev/null
+create table ttrss_feedbrowser_cache (
+ feed_url text not null,
+ subscribers integer not null);
+
+update ttrss_version set schema_version = 48;
+
--- /dev/null
+begin;
+
+create table ttrss_feedbrowser_cache (
+ feed_url text not null primary key,
+ subscribers integer not null);
+
+update ttrss_version set schema_version = 48;
+
+commit;