2020-08-04 11:25:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
|
|
|
class Migrations extends BaseConfig
|
|
|
|
{
|
2020-06-10 15:00:12 +00:00
|
|
|
/*
|
2020-08-04 11:25:22 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Enable/Disable Migrations
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Migrations are enabled by default for security reasons.
|
|
|
|
| You should enable migrations whenever you intend to do a schema migration
|
|
|
|
| and disable it back when you're done.
|
|
|
|
|
|
|
|
|
*/
|
2020-06-10 15:00:12 +00:00
|
|
|
public $enabled = true;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/*
|
2020-08-04 11:25:22 +00: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.
|
|
|
|
|
|
|
|
|
*/
|
2020-06-10 15:00:12 +00:00
|
|
|
public $table = 'migrations';
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2020-06-10 15:00:12 +00:00
|
|
|
/*
|
2020-08-04 11:25:22 +00: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_
|
|
|
|
|
|
|
|
|
*/
|
2020-06-10 15:00:12 +00:00
|
|
|
public $timestampFormat = 'Y-m-d-His_';
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|