commit | d268eda6c2b502cc7fa352072482d1924e36127e | [log] [tgz] |
---|---|---|
author | Phil Sturgeon <email@philsturgeon.co.uk> | Sat Dec 31 16:20:11 2011 +0000 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Sat Dec 31 16:20:11 2011 +0000 |
tree | 87bd5bdacab70709b71bd7e8bf0c37c31f4444d0 | |
parent | 79d88a1e7101c6d7902dd465cbab6236f785d491 [diff] |
Added SELECT version to migrations to make the query a billionth faster.
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index eb5161d..f89391c 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php
@@ -322,7 +322,7 @@ */ 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; }