diff options
author | hashworks <mail@hashworks.net> | 2017-07-10 21:41:59 +0200 |
---|---|---|
committer | hashworks <mail@hashworks.net> | 2017-07-10 21:41:59 +0200 |
commit | 0a1e76f365dbd90eee9c72d81d898e1a0ddf630c (patch) | |
tree | 59de9e9946936b3812a46bec5d98c42d439919dd | |
parent | cfcf6afd4f61769db72dd3927d1cea85c2603191 (diff) |
Fix chunk update for filesizes
This includes the where limitation of the update query in the total
limit of the chunk for loop.
-rw-r--r-- | application/migrations/019_change_filesize_type.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/application/migrations/019_change_filesize_type.php b/application/migrations/019_change_filesize_type.php index 47a998452..33abf89ed 100644 --- a/application/migrations/019_change_filesize_type.php +++ b/application/migrations/019_change_filesize_type.php @@ -21,7 +21,8 @@ class Migration_change_filesize_type extends CI_Migration { $chunk = 500; - $total = $this->db->count_all("file_storage"); + $this->db->where('filesize', 2147483647); + $total = $this->db->count_all_results("file_storage"); for ($limit = 0; $limit < $total; $limit += $chunk) { $query = $this->db->select('hash, id') |