Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
| 5 | * An open source application development framework for PHP 5.1.6 or newer |
| 6 | * |
| 7 | * NOTICE OF LICENSE |
| 8 | * |
| 9 | * Licensed under the Academic Free License version 3.0 |
| 10 | * |
Derek Jones | 61df906 | 2011-10-21 09:55:40 -0500 | [diff] [blame] | 11 | * This source file is subject to the Academic Free License (AFL 3.0) that is |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 12 | * bundled with this package in the files license_afl.txt / license_afl.rst. |
| 13 | * It is also available through the world wide web at this URL: |
| 14 | * http://opensource.org/licenses/AFL-3.0 |
| 15 | * If you did not receive a copy of the license and are unable to obtain it |
| 16 | * through the world wide web, please send an email to |
| 17 | * licensing@ellislab.com so we can send you a copy immediately. |
| 18 | * |
| 19 | * @package CodeIgniter |
| 20 | * @author EllisLab Dev Team |
| 21 | * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/) |
| 22 | * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0) |
| 23 | * @link http://codeigniter.com |
| 24 | * @since Version 1.0 |
| 25 | * @filesource |
| 26 | */ |
| 27 | |
Kyle Farris | ad17f4b | 2011-10-14 15:43:25 -0400 | [diff] [blame] | 28 | /* |
| 29 | |-------------------------------------------------------------------------- |
| 30 | | Enable/Disable Migrations |
| 31 | |-------------------------------------------------------------------------- |
| 32 | | |
| 33 | | Migrations are disabled by default for security reasons. |
| 34 | | You should enable migrations whenever you intend to do a schema migration |
| 35 | | and disable it back when you're done. |
| 36 | | |
| 37 | */ |
| 38 | $config['migration_enabled'] = FALSE; |
| 39 | |
| 40 | /* |
| 41 | |-------------------------------------------------------------------------- |
| 42 | | Migrations table |
| 43 | |-------------------------------------------------------------------------- |
| 44 | | |
| 45 | | This is the name of the table that will store the current migrations state. |
| 46 | | When migrations runs it will store in a database table which migration |
| 47 | | level the system is at. It then compares the migration level in the this |
| 48 | | table to the $config['migration_version'] if they are not the same it |
| 49 | | will migrate up. This must be set. |
| 50 | | |
| 51 | */ |
| 52 | $config['migration_table'] = 'migrations'; |
| 53 | |
| 54 | |
| 55 | /* |
| 56 | |-------------------------------------------------------------------------- |
| 57 | | Auto Migrate To Latest |
| 58 | |-------------------------------------------------------------------------- |
| 59 | | |
| 60 | | If this is set to TRUE when you load the migrations class and have |
| 61 | | $config['migration_enabled'] set to TRUE the system will auto migrate |
| 62 | | to your latest migration (whatever $config['migration_version'] is |
| 63 | | set to). This way you do not have to call migrations anywhere else |
| 64 | | in your code to have the latest migration. |
| 65 | | |
| 66 | */ |
| 67 | $config['migration_auto_latest'] = FALSE; |
| 68 | |
| 69 | |
| 70 | /* |
| 71 | |-------------------------------------------------------------------------- |
| 72 | | Migrations version |
| 73 | |-------------------------------------------------------------------------- |
| 74 | | |
| 75 | | This is used to set migration version that the file system should be on. |
| 76 | | If you run $this->migration->latest() this is the version that schema will |
| 77 | | be upgraded / downgraded to. |
| 78 | | |
| 79 | */ |
| 80 | $config['migration_version'] = 0; |
| 81 | |
| 82 | |
| 83 | /* |
| 84 | |-------------------------------------------------------------------------- |
| 85 | | Migrations Path |
| 86 | |-------------------------------------------------------------------------- |
| 87 | | |
| 88 | | Path to your migrations folder. |
| 89 | | Typically, it will be within your application path. |
| 90 | | Also, writing permission is required within the migrations path. |
| 91 | | |
| 92 | */ |
| 93 | $config['migration_path'] = APPPATH . 'migrations/'; |
| 94 | |
| 95 | |
| 96 | /* End of file migration.php */ |
Phil Sturgeon | 96bd33b | 2011-05-04 01:30:36 +0100 | [diff] [blame] | 97 | /* Location: ./application/config/migration.php */ |