summaryrefslogtreecommitdiffstats
path: root/system/libraries/Migration.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-12-31 17:20:11 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-12-31 17:20:11 +0100
commitd268eda6c2b502cc7fa352072482d1924e36127e (patch)
tree87bd5bdacab70709b71bd7e8bf0c37c31f4444d0 /system/libraries/Migration.php
parent79d88a1e7101c6d7902dd465cbab6236f785d491 (diff)
Added SELECT version to migrations to make the query a billionth faster.
Diffstat (limited to 'system/libraries/Migration.php')
-rw-r--r--system/libraries/Migration.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php
index eb5161d76..f89391c0d 100644
--- a/system/libraries/Migration.php
+++ b/system/libraries/Migration.php
@@ -322,7 +322,7 @@ class CI_Migration {
*/
protected function _get_version()
{
- $row = $this->db->get($this->_migration_table)->row();
+ $row = $this->db->select('version')->get($this->_migration_table)->row();
return $row ? $row->version : 0;
}