diff options
-rw-r--r-- | system/libraries/Migration.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index 009b54fb4..71e0c6993 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php @@ -185,13 +185,16 @@ class CI_Migration { public function version($target_version) { // Note: We use strings, so that timestamp versions work on 32-bit systems - $current_version = $this->_get_version(); - $target_version = (string) $target_version; + $current_version = $this->_get_version(); - if ($this->_migration_type == 'sequential') + 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(); |