summaryrefslogtreecommitdiffstats
path: root/application/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'application/migrations')
-rw-r--r--application/migrations/019_change_filesize_type.php3
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')