add index on ttrss_entries(date_entered), bump schema

This commit is contained in:
Andrew Dolgov 2007-08-25 05:48:27 +01:00
parent 75ca19864e
commit b60e1d862c
3 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,7 @@
require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 9);
define('SCHEMA_VERSION', 21);
define('SCHEMA_VERSION', 22);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy

View File

@ -98,6 +98,8 @@ create table ttrss_entries (id integer not null primary key auto_increment,
comments varchar(250) not null default '',
author varchar(250) not null default '') TYPE=InnoDB;
create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
create table ttrss_user_entries (
int_id integer not null primary key auto_increment,
ref_id integer not null,
@ -196,7 +198,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
insert into ttrss_version values (21);
insert into ttrss_version values (22);
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null) TYPE=InnoDB;

View File

@ -89,7 +89,7 @@ create table ttrss_entries (id serial not null primary key,
create index ttrss_entries_guid_index on ttrss_entries(guid);
-- create index ttrss_entries_title_index on ttrss_entries(title);
-- create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
create index ttrss_entries_date_entered_index on ttrss_entries(date_entered);
create table ttrss_user_entries (
int_id serial not null primary key,
@ -177,7 +177,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 (21);
insert into ttrss_version values (22);
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null);