diff options
Diffstat (limited to 'system/libraries/Migration.php')
-rw-r--r-- | system/libraries/Migration.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php index d08afa598..27d7df010 100644 --- a/system/libraries/Migration.php +++ b/system/libraries/Migration.php @@ -142,7 +142,9 @@ class CI_Migration { } // Migration basename regex - $this->_migration_regex = $this->_migration_type === 'timestamp' ? '/^\d{14}_(\w+)$/' : '/^\d{3}_(\w+)$/'; + $this->_migration_regex = ($this->_migration_type === 'timestamp') + ? '/^\d{14}_(\w+)$/' + : '/^\d{3}_(\w+)$/'; // Make sure a valid migration numbering type was set. if ( ! in_array($this->_migration_type, array('sequential', 'timestamp'))) |