diff options
author | Eric Barnes <eric@ericlbarnes.com> | 2011-09-19 21:12:42 +0200 |
---|---|---|
committer | Eric Barnes <eric@ericlbarnes.com> | 2011-09-19 21:12:42 +0200 |
commit | a4fac6b8ac17b6864e632fe821b650291a9d4c42 (patch) | |
tree | 92a6d8f653a3eb8a9495b1c82e0cf1a1835c0d53 /application | |
parent | 4ff4896dbc6bd24efc3d005df90bdb3667255f09 (diff) | |
parent | 63b61e3bedd2a5729bef15b79ea64fa0a9d54893 (diff) |
Merge pull request #462 from cloudmanic/develop
Migrations: Made it so you can set the table name in the migration config.
Diffstat (limited to 'application')
-rw-r--r-- | application/config/migration.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/application/config/migration.php b/application/config/migration.php index dba870010..1f532f170 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -11,6 +11,35 @@ */
$config['migration_enabled'] = FALSE;
+/*
+|--------------------------------------------------------------------------
+| Migrations table
+|--------------------------------------------------------------------------
+|
+| This is the name of the table that will store the current migrations state.
+| When migrations runs it will store in a database table which migration
+| level the system is at. It then compares the migration level in the this
+| table to the $config['migration_version'] if they are not the same it
+| will migrate up. This must be set.
+|
+*/
+$config['migration_table'] = 'migrations';
+
+
+/*
+|--------------------------------------------------------------------------
+| Auto Migrate To Latest
+|--------------------------------------------------------------------------
+|
+| If this is set to TRUE when you load the migrations class and have
+| $config['migration_enabled'] set to TRUE the system will auto migrate
+| to your latest migration (whatever $config['migration_version'] is
+| set to). This way you do not have to call migrations anywhere else
+| in your code to have the latest migration.
+|
+*/
+$config['migration_auto_latest'] = FALSE;
+
/*
|--------------------------------------------------------------------------
|