Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overwrite addTimestamps() to set created and modified column names as default #619

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

LordSimal
Copy link
Contributor

It's quite annoying, that the ->addTimestamps() method from phinx doesn't use created and modified as default column names.

https://github.com/cakephp/phinx/blob/0.x/src/Phinx/Db/Table.php#L535C49-L536

Therefore this PR overwrites this method and sets the "correct" column names so that CakePHP's TimestampBehavior behaves as expected.

@LordSimal LordSimal merged commit 6f4a741 into 4.x Jul 15, 2023
10 checks passed
@LordSimal LordSimal deleted the 4.x-timestamps branch July 15, 2023 12:23
@LordSimal LordSimal added this to the 4.x (CakePHP 5) milestone Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant