From 6fabe2dc5da7fd57f096720ea5b321a35244aa30 Mon Sep 17 00:00:00 2001 From: Alex <4lx@gmx.de> Date: Fri, 30 Jan 2015 11:23:29 +0100 Subject: [PATCH] New migration: index database field 'custom_url' Added a new migrator to add an index to urls.custom_url. This will speed up database queries having custom_url in the WHERE clause found in /-/index.php. --- -/migrations/006_addindex_customurl.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 -/migrations/006_addindex_customurl.php diff --git a/-/migrations/006_addindex_customurl.php b/-/migrations/006_addindex_customurl.php new file mode 100755 index 0000000..a4203ed --- /dev/null +++ b/-/migrations/006_addindex_customurl.php @@ -0,0 +1,22 @@ +createIndex(DB_PREFIX . 'urls', 'custom_url', 'custom_url_index'); + } + + function down() + { + + } +}