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

created_at, updated_at - "CURRENT_TIMESTAMP" & "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" #176

Open
niccolofavari opened this issue Nov 30, 2018 · 2 comments

Comments

@niccolofavari
Copy link

Hello! I have these two columns in my tables:
created_at
updated_at

They're set to default "CURRENT_TIMESTAMP" and "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" respectively.
These constraints are ignored by the generator.
Is it somehow possible to respect those?

Thank you,
Nikles

@cacpmw
Copy link

cacpmw commented Dec 4, 2018

I think laravel will print the current timestamp automatically. At least this is how it has always worked for me.

@niccolofavari
Copy link
Author

niccolofavari commented Dec 4, 2018 via email

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

2 participants