Page MenuHomePhorge

Remove "ON UPDATE" from expires_at column
ClosedPublic

Authored by machniak on Apr 9 2021, 9:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 9:07 AM
Unknown Object (File)
Tue, Apr 9, 11:08 PM
Unknown Object (File)
Fri, Apr 5, 8:54 AM
Unknown Object (File)
Sat, Mar 23, 3:30 PM
Unknown Object (File)
Feb 29 2024, 4:03 PM
Unknown Object (File)
Feb 25 2024, 3:29 PM
Unknown Object (File)
Jan 25 2024, 4:59 AM
Unknown Object (File)
Jan 18 2024, 12:19 PM
Subscribers
Restricted Project

Details

Reviewers
mollekopf
Group Reviewers
Restricted Project
Commits
rK5e9dec8fad30: Remove "ON UPDATE" from expires_at column
Test Plan

./phpunit

Diff Detail

Repository
rK kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mollekopf subscribed.

Instead of CHANGE you could also just use MODIFY I think (since we're not renaming columns):

ALTER TABLE `signup_codes` MODIFY `expires_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP

The change looks good otherwise, so you can ship it after this fix (or ship directly, as this will work too.).

This revision is now accepted and ready to land.Apr 20 2021, 3:21 PM
  • Use ALTER TABLE .. MODIFY
This revision was automatically updated to reflect the committed changes.