Add defaults before persisting .create#34
Add defaults before persisting .create#34wasabigeek wants to merge 3 commits intodflourusso:masterfrom
Conversation
|
@dflourusso appreciate your comments! |
|
Thanks for your contribution. I will review your code ASAP. |
|
That's a good question, maybe we can think of it similarly to how column defaults are handled in sql databases? If I understood correctly, it will set defaults on update too, if the fields are empty. |
|
Another question, in the |
|
To clarify, if we are updating a column A, it shouldn't set column B to it's default value, even if it's empty? I agree, it seems like that's the default SQLite behaviour is, which I think we should follow. |
Fixes #33