From 9b19887fcc16a3bce52f2cbe84e98b8200bab23d Mon Sep 17 00:00:00 2001 From: Ahmad Anbar Date: Tue, 1 Apr 2014 01:13:05 +0300 Subject: Fix #2970 --- system/libraries/Migration.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index b226ee804..009b54fb4 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php @@ -186,7 +186,12 @@ class CI_Migration { { // Note: We use strings, so that timestamp versions work on 32-bit systems $current_version = $this->_get_version(); - $target_version = (string) $target_version; + $target_version = (string) $target_version; + + if ($this->_migration_type == 'sequential') + { + $target_version = str_pad($target_version, 3, '0', STR_PAD_LEFT); + } $migrations = $this->find_migrations(); -- cgit v1.2.3-24-g4f1b