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

MySQL timestamp column should have SqlType specified #57

Open
boh717 opened this issue Jun 5, 2019 · 0 comments
Open

MySQL timestamp column should have SqlType specified #57

boh717 opened this issue Jun 5, 2019 · 0 comments

Comments

@boh717
Copy link
Contributor

boh717 commented Jun 5, 2019

To avoid having a column with on update CURRENT_TIMESTAMP, add O.SqlType("timestamp not null default CURRENT_TIMESTAMP") to column definition.

"On update" could be desirable, but on token tables probably isn't.

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

No branches or pull requests

2 participants