From 34c8b9c45fdcd2eb0eee5e2275a52e4c2faed5dc Mon Sep 17 00:00:00 2001 From: Jonathon Hill Date: Wed, 31 Oct 2012 14:02:35 -0400 Subject: Added support for timestamp-based migrations Signed-off-by: Jonathon Hill --- application/config/migration.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'application/config/migration.php') 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 @@ -37,6 +37,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 -- cgit v1.2.3-24-g4f1b From b719bfdb268926e764a787ffcab1a3ea9c9759d7 Mon Sep 17 00:00:00 2001 From: Jonathon Hill Date: Mon, 12 Nov 2012 09:03:36 -0500 Subject: Changed the `migration_style` config setting to `migration_type` Signed-off-by: Jonathon Hill --- application/config/migration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application/config/migration.php') diff --git a/application/config/migration.php b/application/config/migration.php index 476da1b8e..3ea3ef93c 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -39,7 +39,7 @@ $config['migration_enabled'] = FALSE; /* |-------------------------------------------------------------------------- -| Migration Style +| Migration Type |-------------------------------------------------------------------------- | | Migration file names may be based on a sequential identifier or on @@ -53,7 +53,7 @@ $config['migration_enabled'] = FALSE; | to 'sequential' for backward compatibility. | */ -$config['migration_style'] = 'timestamp'; +$config['migration_type'] = 'timestamp'; /* |-------------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b