Migrations.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php namespace Config;
  2. use CodeIgniter\Config\BaseConfig;
  3. class Migrations extends BaseConfig
  4. {
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Enable/Disable Migrations
  8. |--------------------------------------------------------------------------
  9. |
  10. | Migrations are enabled by default for security reasons.
  11. | You should enable migrations whenever you intend to do a schema migration
  12. | and disable it back when you're done.
  13. |
  14. */
  15. public $enabled = true;
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Migrations table
  19. |--------------------------------------------------------------------------
  20. |
  21. | This is the name of the table that will store the current migrations state.
  22. | When migrations runs it will store in a database table which migration
  23. | level the system is at. It then compares the migration level in this
  24. | table to the $config['migration_version'] if they are not the same it
  25. | will migrate up. This must be set.
  26. |
  27. */
  28. public $table = 'migrations';
  29. /*
  30. |--------------------------------------------------------------------------
  31. | Timestamp Format
  32. |--------------------------------------------------------------------------
  33. |
  34. | This is the format that will be used when creating new migrations
  35. | using the cli command:
  36. | > php spark migrate:create
  37. |
  38. | Typical formats:
  39. | YmdHis_
  40. | Y-m-d-His_
  41. | Y_m_d_His_
  42. |
  43. */
  44. public $timestampFormat = 'Y-m-d-His_';
  45. }