blob: 4b585a65c1085b2910acfd90fa8dfcdfb8156b33 [file] [log] [blame]
darwineld8bef8a2014-02-11 20:13:22 +01001<?php
darwineld8bef8a2014-02-11 20:13:22 +01002defined('BASEPATH') OR exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -05003
Kyle Farrisad17f4b2011-10-14 15:43:25 -04004/*
5|--------------------------------------------------------------------------
6| Enable/Disable Migrations
7|--------------------------------------------------------------------------
8|
9| Migrations are disabled by default for security reasons.
10| You should enable migrations whenever you intend to do a schema migration
11| and disable it back when you're done.
12|
13*/
14$config['migration_enabled'] = FALSE;
15
16/*
17|--------------------------------------------------------------------------
Jonathon Hillb719bfd2012-11-12 09:03:36 -050018| Migration Type
Jonathon Hill34c8b9c2012-10-31 14:02:35 -040019|--------------------------------------------------------------------------
20|
21| Migration file names may be based on a sequential identifier or on
22| a timestamp. Options are:
23|
Andrey Andreevc79a62c2015-07-06 11:21:20 +030024| 'sequential' = Sequential migration naming (001_add_blog.php)
Jonathon Hill34c8b9c2012-10-31 14:02:35 -040025| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
26| Use timestamp format YYYYMMDDHHIISS.
27|
Andrey Andreevc79a62c2015-07-06 11:21:20 +030028| Note: If this configuration value is missing the Migration library
29| defaults to 'sequential' for backward compatibility with CI2.
Jonathon Hill34c8b9c2012-10-31 14:02:35 -040030|
31*/
Jonathon Hillb719bfd2012-11-12 09:03:36 -050032$config['migration_type'] = 'timestamp';
Jonathon Hill34c8b9c2012-10-31 14:02:35 -040033
34/*
35|--------------------------------------------------------------------------
Kyle Farrisad17f4b2011-10-14 15:43:25 -040036| Migrations table
37|--------------------------------------------------------------------------
38|
39| This is the name of the table that will store the current migrations state.
Eric Barnesdd81c432011-11-16 11:07:35 -050040| When migrations runs it will store in a database table which migration
Robert Doucettea465fc42012-06-19 01:49:01 +030041| level the system is at. It then compares the migration level in this
Kyle Farrisad17f4b2011-10-14 15:43:25 -040042| table to the $config['migration_version'] if they are not the same it
43| will migrate up. This must be set.
44|
45*/
46$config['migration_table'] = 'migrations';
47
Kyle Farrisad17f4b2011-10-14 15:43:25 -040048/*
49|--------------------------------------------------------------------------
50| Auto Migrate To Latest
51|--------------------------------------------------------------------------
52|
Eric Barnesdd81c432011-11-16 11:07:35 -050053| If this is set to TRUE when you load the migrations class and have
Kyle Farrisad17f4b2011-10-14 15:43:25 -040054| $config['migration_enabled'] set to TRUE the system will auto migrate
55| to your latest migration (whatever $config['migration_version'] is
56| set to). This way you do not have to call migrations anywhere else
57| in your code to have the latest migration.
58|
59*/
60$config['migration_auto_latest'] = FALSE;
61
Kyle Farrisad17f4b2011-10-14 15:43:25 -040062/*
63|--------------------------------------------------------------------------
64| Migrations version
65|--------------------------------------------------------------------------
66|
67| This is used to set migration version that the file system should be on.
Eric Barnesdd81c432011-11-16 11:07:35 -050068| If you run $this->migration->current() this is the version that schema will
Kyle Farrisad17f4b2011-10-14 15:43:25 -040069| be upgraded / downgraded to.
70|
71*/
72$config['migration_version'] = 0;
73
Kyle Farrisad17f4b2011-10-14 15:43:25 -040074/*
75|--------------------------------------------------------------------------
76| Migrations Path
77|--------------------------------------------------------------------------
78|
79| Path to your migrations folder.
80| Typically, it will be within your application path.
81| Also, writing permission is required within the migrations path.
82|
83*/
Andrey Andreevc8c260f2013-11-27 13:58:52 +020084$config['migration_path'] = APPPATH.'migrations/';