Phil Sturgeon | 9758d84 | 2011-02-07 20:39:00 +0000 | [diff] [blame] | 1 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
|
| 2 | /*
|
| 3 | |--------------------------------------------------------------------------
|
| 4 | | Enable/Disable Migrations
|
| 5 | |--------------------------------------------------------------------------
|
| 6 | |
|
| 7 | | Migrations are disabled by default for security reasons.
|
| 8 | | You should enable migrations whenever you intend to do a schema migration
|
| 9 | | and disable it back when you're done.
|
| 10 | |
|
| 11 | */
|
Phil Sturgeon | 62f04a6 | 2011-08-10 08:24:04 -0600 | [diff] [blame] | 12 | $config['migration_enabled'] = FALSE;
|
Phil Sturgeon | 9758d84 | 2011-02-07 20:39:00 +0000 | [diff] [blame] | 13 |
|
Cloudmanic Labs, LLC | 539dcb0 | 2011-09-18 12:08:56 -0700 | [diff] [blame] | 14 | /*
|
| 15 | |--------------------------------------------------------------------------
|
| 16 | | Migrations table
|
| 17 | |--------------------------------------------------------------------------
|
| 18 | |
|
| 19 | | This is the name of the table that will store the current migrations state.
|
| 20 | | When migrations runs it will store in a database table which migration
|
| 21 | | level the system is at. It then compares the migration level in the this
|
| 22 | | table to the $config['migration_version'] if they are not the same it
|
| 23 | | will migrate up. This must be set.
|
| 24 | |
|
| 25 | */
|
| 26 | $config['migration_table'] = 'migrations';
|
Phil Sturgeon | 9758d84 | 2011-02-07 20:39:00 +0000 | [diff] [blame] | 27 |
|
Cloudmanic Labs, LLC | d1ba8f7 | 2011-09-18 12:23:00 -0700 | [diff] [blame^] | 28 |
|
| 29 | /*
|
| 30 | |--------------------------------------------------------------------------
|
| 31 | | Auto Migrate To Latest
|
| 32 | |--------------------------------------------------------------------------
|
| 33 | |
|
| 34 | | If this is set to TRUE when you load the migrations class and have
|
| 35 | | $config['migration_enabled'] set to TRUE the system will auto migrate
|
| 36 | | to your latest migration (whatever $config['migration_version'] is
|
| 37 | | set to). This way you do not have to call migrations anywhere else
|
| 38 | | in your code to have the latest migration.
|
| 39 | |
|
| 40 | */
|
| 41 | $config['migration_auto_latest'] = FALSE;
|
| 42 |
|
| 43 |
|
Phil Sturgeon | 9758d84 | 2011-02-07 20:39:00 +0000 | [diff] [blame] | 44 | /*
|
| 45 | |--------------------------------------------------------------------------
|
| 46 | | Migrations version
|
| 47 | |--------------------------------------------------------------------------
|
| 48 | |
|
| 49 | | This is used to set migration version that the file system should be on.
|
| 50 | | If you run $this->migration->latest() this is the version that schema will
|
| 51 | | be upgraded / downgraded to.
|
| 52 | |
|
| 53 | */
|
Phil Sturgeon | 96bd33b | 2011-05-04 01:30:36 +0100 | [diff] [blame] | 54 | $config['migration_version'] = 0;
|
Phil Sturgeon | 9758d84 | 2011-02-07 20:39:00 +0000 | [diff] [blame] | 55 |
|
| 56 |
|
| 57 | /*
|
| 58 | |--------------------------------------------------------------------------
|
| 59 | | Migrations Path
|
| 60 | |--------------------------------------------------------------------------
|
| 61 | |
|
| 62 | | Path to your migrations folder.
|
| 63 | | Typically, it will be within your application path.
|
| 64 | | Also, writing permission is required within the migrations path.
|
| 65 | |
|
| 66 | */
|
| 67 | $config['migration_path'] = APPPATH . 'migrations/';
|
Phil Sturgeon | 96bd33b | 2011-05-04 01:30:36 +0100 | [diff] [blame] | 68 |
|
| 69 |
|
| 70 | /* End of file migration.php */
|
| 71 | /* Location: ./application/config/migration.php */ |