summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorJonathon Hill <jhill@brandmovers.com>2012-10-31 19:02:35 +0100
committerJonathon Hill <jhill@brandmovers.com>2012-10-31 19:02:35 +0100
commit34c8b9c45fdcd2eb0eee5e2275a52e4c2faed5dc (patch)
tree660e13e2c915e4127e0575723cdd6c3f9a48cca2 /application
parent936a8fe74fdefe099fceb2c93c2eab22370d8915 (diff)
Added support for timestamp-based migrations
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
Diffstat (limited to 'application')
-rw-r--r--application/config/migration.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/application/config/migration.php b/application/config/migration.php
index 7645ade7c..476da1b8e 100644
--- a/application/config/migration.php
+++ b/application/config/migration.php
@@ -39,6 +39,24 @@ $config['migration_enabled'] = FALSE;
/*
|--------------------------------------------------------------------------
+| Migration Style
+|--------------------------------------------------------------------------
+|
+| Migration file names may be based on a sequential identifier or on
+| a timestamp. Options are:
+|
+| 'sequential' = Default migration naming (001_add_blog.php)
+| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
+| Use timestamp format YYYYMMDDHHIISS.
+|
+| If this configuration value is missing the Migration library defaults
+| to 'sequential' for backward compatibility.
+|
+*/
+$config['migration_style'] = 'timestamp';
+
+/*
+|--------------------------------------------------------------------------
| Migrations table
|--------------------------------------------------------------------------
|