alter ttrss_counters_cache; bump schema
This commit is contained in:
parent
33271cd843
commit
a1eba24b24
|
@ -2,7 +2,7 @@
|
||||||
require_once "functions.php";
|
require_once "functions.php";
|
||||||
|
|
||||||
define('EXPECTED_CONFIG_VERSION', 17);
|
define('EXPECTED_CONFIG_VERSION', 17);
|
||||||
define('SCHEMA_VERSION', 48);
|
define('SCHEMA_VERSION', 49);
|
||||||
|
|
||||||
if (!file_exists("config.php")) {
|
if (!file_exists("config.php")) {
|
||||||
print __("<b>Fatal Error</b>: You forgot to copy
|
print __("<b>Fatal Error</b>: You forgot to copy
|
||||||
|
|
|
@ -63,6 +63,7 @@ create table ttrss_counters_cache (
|
||||||
feed_id integer not null,
|
feed_id integer not null,
|
||||||
owner_uid integer not null,
|
owner_uid integer not null,
|
||||||
value integer not null default 0,
|
value integer not null default 0,
|
||||||
|
updated datetime not null,
|
||||||
foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE,
|
foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE,
|
||||||
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE
|
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
@ -223,7 +224,7 @@ create table ttrss_tags (id integer primary key auto_increment,
|
||||||
|
|
||||||
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
|
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
|
||||||
|
|
||||||
insert into ttrss_version values (47);
|
insert into ttrss_version values (49);
|
||||||
|
|
||||||
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,
|
||||||
|
|
|
@ -88,6 +88,7 @@ insert into ttrss_feeds (owner_uid, title, feed_url) values
|
||||||
create table ttrss_counters_cache (
|
create table ttrss_counters_cache (
|
||||||
feed_id integer not null references ttrss_feeds(id) ON DELETE CASCADE,
|
feed_id integer not null references ttrss_feeds(id) ON DELETE CASCADE,
|
||||||
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
|
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
|
||||||
|
updated timestamp not null,
|
||||||
value integer not null default 0);
|
value integer not null default 0);
|
||||||
|
|
||||||
create table ttrss_entries (id serial not null primary key,
|
create table ttrss_entries (id serial not null primary key,
|
||||||
|
@ -200,7 +201,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
|
||||||
|
|
||||||
create table ttrss_version (schema_version int not null);
|
create table ttrss_version (schema_version int not null);
|
||||||
|
|
||||||
insert into ttrss_version values (48);
|
insert into ttrss_version values (49);
|
||||||
|
|
||||||
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,
|
||||||
|
|
Loading…
Reference in New Issue