Can I override addTimestamps?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 4.5k
- Forks
- 884
- PR merge metrics
- No merged PRs in 30d
Description
Can I override addTimestamps() method? I don't like some of the default settings it using like the timestamp type for both created_at and updated_at and that only the created_at gets the current timestamp.
I'd like to set both created_at and updated_at as datetime type and default value on both to be NOW(), is that possible some how?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the addTimestamps() method in the migration API and how it defines created_at and updated_at columns. Determine whether overriding the method or configuring its column types and defaults is supported; done means the supported behavior is documented or the requested customization has a defined implementation path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100