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

Cannot migrate v8 tables to v9 with 'CURRENT_TIMESTAMP' #7180

Closed
3 tasks done
tshan007 opened this issue Aug 4, 2021 · 3 comments
Closed
3 tasks done

Cannot migrate v8 tables to v9 with 'CURRENT_TIMESTAMP' #7180

tshan007 opened this issue Aug 4, 2021 · 3 comments

Comments

@tshan007
Copy link

tshan007 commented Aug 4, 2021

Preflight Checklist

Describe the Bug

All the existing tables with datetime/timestamp fields which contains default values as CURRENT_TIMESTAMP are failed to migrate and getting following error.

ER_INVALID_DEFAULT: Invalid default value for 'createdAt'

image

To Reproduce

Host directus v9.
Migrate v8 to v9 via migration tool.

What version of Directus are you using?

9.0.0-rc.87

What version of Node.js are you using?

16.6.0

What database are you using?

mysql 8.0.22

What browser are you using?

Chrome

What operating system are you using?

Windows

How are you deploying Directus?

locally

@paescuj
Copy link
Member

paescuj commented Aug 4, 2021

Can you post this issue on the migration-tool repository instead?

@tshan007
Copy link
Author

tshan007 commented Aug 4, 2021

Can you post this issue on the migration-tool repository instead?

Well... Yes I can post there, but errors are getting from the directus v9 end. I didn't see any error on migration tool.

@paescuj
Copy link
Member

paescuj commented Aug 4, 2021

Yes, but it is something which should be handled by the migration-tool. Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants