diff options
author | Andrey Andreev <narf@devilix.net> | 2014-04-01 01:06:33 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-04-01 01:06:33 +0200 |
commit | 0a002014c2099602cb7143eca850b0acbe898d2f (patch) | |
tree | 28f855b8b91c8079a93136489b2f2907fbdb4c67 /system/libraries/Migration.php | |
parent | aaca5cb7a3df2cfb8e18e87dca43be6ab112747d (diff) | |
parent | b10a6d62c580980e770ce52b484302d8174764e5 (diff) |
Merge pull request #2982 from aanbar/migration-fix
Fix #2970
Diffstat (limited to 'system/libraries/Migration.php')
-rw-r--r-- | system/libraries/Migration.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index b226ee804..9185adff1 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php @@ -186,7 +186,15 @@ 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; + + if ($this->_migration_type === 'sequential') + { + $target_version = str_pad($target_version, 3, '0', STR_PAD_LEFT); + } + else + { + $target_version = (string) $target_version; + } $migrations = $this->find_migrations(); |