Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

56 wiersze
1.6KB

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