From b60e1d862c6e4637e1d2bbfb1fb0c606552656e7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Aug 2007 05:48:27 +0100 Subject: [PATCH] add index on ttrss_entries(date_entered), bump schema --- sanity_check.php | 2 +- schema/ttrss_schema_mysql.sql | 4 +++- schema/ttrss_schema_pgsql.sql | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sanity_check.php b/sanity_check.php index 6b896fc4..33b433d0 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -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 __("Fatal Error: You forgot to copy diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index f2841a00..1dca0373 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -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; diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 021e1339..7688e320 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -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); -- 2.39.5