summaryrefslogtreecommitdiffstats
path: root/system/libraries/Migration.php
diff options
context:
space:
mode:
authorJonathon Hill <jhill@brandmovers.com>2012-11-12 15:03:36 +0100
committerJonathon Hill <jhill@brandmovers.com>2012-11-12 15:03:36 +0100
commitb719bfdb268926e764a787ffcab1a3ea9c9759d7 (patch)
tree4329fd690881f4c343fe8b5f4fa5b9078dd84ea9 /system/libraries/Migration.php
parent3978fc33d82dd7f778d1adbf30744f4dfac41c25 (diff)
Changed the `migration_style` config setting to `migration_type`
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
Diffstat (limited to 'system/libraries/Migration.php')
-rw-r--r--system/libraries/Migration.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php
index 275aeb048..af9e53030 100644
--- a/system/libraries/Migration.php
+++ b/system/libraries/Migration.php
@@ -48,11 +48,11 @@ class CI_Migration {
protected $_migration_enabled = FALSE;
/**
- * Migration numbering style
+ * Migration numbering type
*
* @var bool
*/
- protected $_migration_style = 'sequential';
+ protected $_migration_type = 'sequential';
/**
* Path to migration classes
@@ -142,12 +142,12 @@ class CI_Migration {
}
// Migration basename regex
- $this->_migration_regex = $this->_migration_style === '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 style was set.
- if ( ! in_array($this->_migration_style, array('sequential', 'timestamp')))
+ // Make sure a valid migration numbering type was set.
+ if ( ! in_array($this->_migration_type, array('sequential', 'timestamp')))
{
- show_error('An invalid migration numbering style was specified: '.$this->_migration_style);
+ show_error('An invalid migration numbering type was specified: '.$this->_migration_type);
}
// If the migrations table is missing, make it
@@ -216,7 +216,7 @@ class CI_Migration {
foreach ($migrations as $number => $file)
{
// Check for sequence gaps
- if ($this->_migration_style === 'sequential' AND $previous !== FALSE AND abs($number - $previous) > 1)
+ if ($this->_migration_type === 'sequential' AND $previous !== FALSE AND abs($number - $previous) > 1)
{
$this->_error_string = sprintf($this->lang->line('migration_sequence_gap'), $number);
return FALSE;