-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
dev/core#1782 Set activity_date_time and created_date to default to current_timestamp #17450
Conversation
(Standard links)
|
I think the tests will do a good job of finding any issues here. Once the upgrade change is in too then then I'm happy when jenkins is (MOP was premature as the upgrade change not in yet) |
The failure was
Also note this "Previously, at most one TIMESTAMP column per table could be automatically initialized or updated to the current date and time. This restriction has been lifted. Any TIMESTAMP column definition can have any combination of DEFAULT CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP clauses. In addition, these clauses now can be used with DATETIME column definitions. For more information, see Automatic Initialization and Updating for TIMESTAMP and DATETIME." https://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-5.html So this would break anyone who was trying to install on MySQL 5.5 (no of course deprecated but we still permit installation on it) |
@colemanw any thoughts? |
It sounds like we'll have to drop support for MySql 5.5 before releasing this. |
0a94069
to
a734ca1
Compare
@mattwire the DAO still needs regen. |
We discussed this & plan is remove mysql 5.5 support in 5.28 - so with some test changes & changes to support that we will be able to merge this |
a734ca1
to
b348dc2
Compare
@colemanw @eileenmcnaughton I've added the upgrader and the min SQL version. And regenerated DAO. Are we good to merge? |
Looks great! |
I removed the ready for review as this is stale. I'm not a fan of the label since in theory they should all be if they are in the review queue |
b348dc2
to
487813a
Compare
@colemanw This is now rebased following DAO updates. |
If this doesn't pass it might be that we need to adjust CI - @seamuslee001 emailed the dev list to highlight that we will discontinue 5.5 mysql support |
nice! |
Nice work everyone. And thanks for the followups #17496 and #17558 @seamuslee001 |
Overview
Add defaults for
activity_date_time
andcreated_date
if not set.Before
No default.
After
Default
Technical Details
Comments
Found via #17274
@seamuslee001 I think we might need an upgrader step too so the database gets the defaults defined?