2020-09-06 00:51:12 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
2016-04-21 00:30:24 -05:00
|
|
|
|
2016-04-21 09:25:17 -05:00
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
|
|
|
class Migrations extends BaseConfig
|
2016-04-21 00:30:24 -05:00
|
|
|
{
|
2021-06-04 22:51:52 +08:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Enable/Disable Migrations
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* Migrations are enabled by default.
|
|
|
|
*
|
|
|
|
* You should enable migrations whenever you intend to do a schema migration
|
|
|
|
* and disable it back when you're done.
|
|
|
|
*
|
2021-06-08 11:46:56 +08:00
|
|
|
* @var bool
|
2021-06-04 22:51:52 +08:00
|
|
|
*/
|
|
|
|
public $enabled = true;
|
2016-04-21 00:30:24 -05:00
|
|
|
|
2021-06-04 22:51:52 +08:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* 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 this
|
|
|
|
* table to the $config['migration_version'] if they are not the same it
|
|
|
|
* will migrate up. This must be set.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $table = 'migrations';
|
2016-04-21 00:30:24 -05:00
|
|
|
|
2021-06-04 22:51:52 +08:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Timestamp Format
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* This is the format that will be used when creating new migrations
|
|
|
|
* using the CLI command:
|
|
|
|
* > php spark migrate:create
|
|
|
|
*
|
|
|
|
* Typical formats:
|
|
|
|
* - YmdHis_
|
|
|
|
* - Y-m-d-His_
|
|
|
|
* - Y_m_d_His_
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $timestampFormat = 'Y-m-d-His_';
|
2016-04-21 00:30:24 -05:00
|
|
|
}
|