Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Fix Migration #1300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix Migration #1300

wants to merge 1 commit into from

Conversation

BigTicklez
Copy link

CMS attempted to update 'created' field in 'prefix_posts' to CURRENT_TIMESTAMP, then add 'updated' field with same default value - illegal move for MySQL. 'created' will now be default "0000-00-00 00:00:00", since the route for add already creates the input for 'created' as the current date/time.

CMS attempted to update 'created' field in 'prefix_posts' to CURRENT_TIMESTAMP, then add 'updated' field with same default value - illegal move for MySQL. 'created' will now be default "0000-00-00 00:00:00", since the route for add already creates the input for 'created' as the current date/time.
@CraigChilds94
Copy link
Member

@BigTicklez What version of MySQL are you encountering your issue on? And are you able to make an issue first with all the details and reference that here?

@BigTicklez
Copy link
Author

@BigTicklez What version of MySQL are you encountering your issue on? And are you able to make an issue first with all the details and reference that here?

Hey Craig,

Looks like 5.7.24 is my current version. Sure I'll put an issue up. I didn't capture MySQL's error report but I'll do a fresh install to re-trigger those errors. Thanks!

@CraigChilds94
Copy link
Member

@BigTicklez hmm 🤔 interesting, I'll have to take a look myself. :)

@TheRolfFR
Copy link

When I installed the 0.12.7, I had this issue on all of my tables telling me that this was not an authorized value.

Current version of Anchor : 0.12.7
Current version of MySQL : 4.8.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants