summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2014-04-01 00:13:05 +0200
committerAhmad Anbar <aanbar@gmail.com>2014-04-01 00:13:05 +0200
commit9b19887fcc16a3bce52f2cbe84e98b8200bab23d (patch)
tree2ed05fda3308a9fc5c1b2bc5eadff3a574f384ff /system/libraries
parentaaca5cb7a3df2cfb8e18e87dca43be6ab112747d (diff)
Fix #2970
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Migration.php7
1 files changed, 6 insertions, 1 deletions
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();