From d33974cec44d7ed7a648a4e30380c3dfa3f11b2f Mon Sep 17 00:00:00 2001 From: git-marijus Date: Mon, 31 Jul 2017 16:49:56 +0200 Subject: db update to add index for item.obj_type --- install/schema_mysql.sql | 1 + install/schema_postgres.sql | 1 + install/update.php | 14 +++++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 4430e9f10..9e2e401b5 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -660,6 +660,7 @@ CREATE TABLE IF NOT EXISTS `item` ( KEY `item_flags` (`item_flags`), KEY `commented` (`commented`), KEY `verb` (`verb`), + KEY `obj_type` (`obj_type`), KEY `item_private` (`item_private`), KEY `llink` (`llink`), KEY `expires` (`expires`), diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index f3cead9b7..0bc783692 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -631,6 +631,7 @@ create index "item_restrict" on item ("item_restrict"); create index "item_flags" on item ("item_flags"); create index "item_commented" on item ("commented"); create index "item_verb" on item ("verb"); +create index "item_obj_type" on item ("obj_type"); create index "item_private" on item ("item_private"); create index "item_llink" on item ("llink"); create index "item_expires" on item ("expires"); diff --git a/install/update.php b/install/update.php index ac560f4db..8798a3d69 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@