1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:45:55 +00:00

schema: add ttrss_feedbrowser_cache (bump schema)

This commit is contained in:
Andrew Dolgov
2009-01-16 10:33:25 +01:00
parent df00fb8051
commit 0c630ef326
5 changed files with 27 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
-- 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;
@@ -375,4 +376,8 @@ create table ttrss_sessions (id varchar(250) unique not null primary key,
index (id),
index (expire)) TYPE=InnoDB;
create table ttrss_feedbrowser_cache (
feed_url text not null,
subscribers integer not null);
commit;

View File

@@ -1,3 +1,4 @@
drop table ttrss_feedbrowser_cache;
drop table ttrss_version;
drop table ttrss_labels;
drop table ttrss_filters;
@@ -199,7 +200,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
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,
@@ -345,4 +346,8 @@ create index ttrss_sessions_expire_index on ttrss_sessions(expire);
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;

View File

@@ -0,0 +1,6 @@
create table ttrss_feedbrowser_cache (
feed_url text not null,
subscribers integer not null);
update ttrss_version set schema_version = 48;

View File

@@ -0,0 +1,9 @@
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;