Fix #2970
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php
index b226ee8..009b54f 100644
--- a/system/libraries/Migration.php
+++ b/system/libraries/Migration.php
@@ -186,7 +186,12 @@
{
// 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();