2020-08-04 11:25:22 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 09:52:11 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-08-04 11:25:22 +00:00
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
|
|
|
class Migrations extends BaseConfig
|
|
|
|
{
|
2021-04-02 17:20:02 +00: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-05-18 17:16:36 +00:00
|
|
|
public bool $enabled = true;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +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
|
2023-11-15 16:17:43 +00:00
|
|
|
* files have already been run.
|
2021-04-02 17:20:02 +00:00
|
|
|
*/
|
2021-05-18 17:16:36 +00:00
|
|
|
public string $table = 'migrations';
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +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_
|
|
|
|
*/
|
2021-05-18 17:16:36 +00:00
|
|
|
public string $timestampFormat = 'Y-m-d-His_';
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|