Skip to content

Commit b62dbf8

Browse files
committed
docs(config): Updated configuration documentation and feature flag comments
- Added explanation in the configuration documentation regarding the impact of the `add_timestamps_use_datetime` setting on the schema table - Updated the comments for `addTimestampsUseDateTime` in the FeatureFlags class to clarify its effect on the schema table - Ensured consistency between the documentation and code comments
1 parent 99a15c5 commit b62dbf8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/en/configuration.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ For some breaking changes, Phinx offers a way to opt-out of new behavior. The fo
562562
* ``column_null_default``: Should Phinx create columns as null by default? (default: ``true``)
563563

564564
Since MySQL ``TIMESTAMP`` fields do not support dates past 2038-01-19, you have the option to use ``DATETIME`` field
565-
types for fields created by the ``addTimestamps()`` function:
565+
types for fields created by the ``addTimestamps()`` function. This setting also affects the start_time and end_time
566+
columns in the schema table:
566567

567568
* ``add_timestamps_use_datetime``: Should Phinx create created_at and updated_at fields as datetime? (default: ``false``)
568569

src/Phinx/Config/FeatureFlags.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class FeatureFlags
2424
public static bool $columnNullDefault = true;
2525
/**
2626
* @var bool Should Phinx create datetime columns for addTimestamps instead of timestamp?
27+
* Also affects start_time and end_time column types in schema table.
2728
*/
2829
public static bool $addTimestampsUseDateTime = false;
2930

0 commit comments

Comments
 (0)