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

[question] can i use mysql on update option? #217

Closed
necro42 opened this issue Nov 23, 2021 · 2 comments
Closed

[question] can i use mysql on update option? #217

necro42 opened this issue Nov 23, 2021 · 2 comments

Comments

@necro42
Copy link

necro42 commented Nov 23, 2021

I have used "DEFAULT current_timestamp() ON UPDATE current_timestamp()" as column default attribute.

but

default: `current_timestamp() ON UPDATE current_timestamp()`

is not to be used

can i use mysql table created on update option?

@idan3
Copy link

idan3 commented Feb 3, 2022

I need it too and its not working

@ortonomy
Copy link

ortonomy commented Mar 2, 2022

ON UPDATE CURRENT_TIMESTAMP is exported from mysqldump and it doesn't correctly convert to DBML:

You have a syntax error at "test.sql" line 98 column 3. Expected ")" or fields but "d" found.

No, no I don't have a syntax error. It was exported from mysqldump. Please don't pretend to support MYSQL if you really don't.

seems this is also a duplicated of #141

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

No branches or pull requests

4 participants