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

add default value #19

Merged
merged 1 commit into from
Feb 27, 2018
Merged

add default value #19

merged 1 commit into from
Feb 27, 2018

Conversation

tanner0101
Copy link
Member

@tanner0101 tanner0101 commented Feb 27, 2018

  • adds DEFAULT ... support to PostgreSQL column

This doesn't have a great use case yet, as it's impossible to set a model's property to nil and not have that nil forwarded to the DB (which overrides the default). But this can be further looked into in Fluent itself. Take a look at the tests added here to see a workaround.

@tanner0101 tanner0101 added the enhancement New feature or request label Feb 27, 2018
@tanner0101 tanner0101 self-assigned this Feb 27, 2018
@tanner0101 tanner0101 merged commit 006386a into master Feb 27, 2018
@tanner0101 tanner0101 deleted the default-value branch February 27, 2018 23:16
@tanner0101 tanner0101 added this to the 1.0.0-rc.1.1 milestone Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant