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

Is it possible to set a column to its default value during update? #725

Closed
stearnsc opened this Issue Feb 17, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@stearnsc

stearnsc commented Feb 17, 2017

I don't feel like this is the best place for these sorts of questions, but I'm not sure what the right place is, so feel free to redirect me.

I have a table with a column with a default value. I know on insert, I can just leave that column out of my insertable type, and it will take the default value. Is there a way to "reset" it to the default value via update?

@sgrif

This comment has been minimized.

Member

sgrif commented Feb 17, 2017

A good place to ask questions is in gitter. There's a link in the README. There's not a way to set a column to its default right now, but it's something we're exploring.

@sgrif sgrif closed this Feb 17, 2017

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