crm-summit/app/Config/Migrations.php

51 lines
1.6 KiB
PHP
Raw Normal View History

2024-04-24 13:20:52 +07:00
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Migrations extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* 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.
*/
2025-08-15 11:38:41 +07:00
public bool $enabled = true;
2024-04-24 13:20:52 +07: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
2025-08-15 11:38:41 +07:00
* files have already been run.
2024-04-24 13:20:52 +07:00
*/
2025-08-15 11:38:41 +07:00
public string $table = 'migrations';
2024-04-24 13:20:52 +07:00
/**
* --------------------------------------------------------------------------
* Timestamp Format
* --------------------------------------------------------------------------
*
* This is the format that will be used when creating new migrations
* using the CLI command:
2025-08-15 11:38:41 +07:00
* > php spark make:migration
2024-04-24 13:20:52 +07:00
*
2025-08-15 11:38:41 +07:00
* NOTE: if you set an unsupported format, migration runner will not find
* your migration files.
*
* Supported formats:
2024-04-24 13:20:52 +07:00
* - YmdHis_
* - Y-m-d-His_
* - Y_m_d_His_
*/
2025-08-15 11:38:41 +07:00
public string $timestampFormat = 'Y-m-d-His_';
2024-04-24 13:20:52 +07:00
}