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

"Easy to set" default values are not set in database scheme in MySQL #18

Open
philippsimon opened this issue Apr 16, 2013 · 1 comment

Comments

@philippsimon
Copy link

While uploading data with a script i realized that the default values of the database scheme were not set and so i had problems to restore the data. I think simple strings, booleans, date.now, int can be set directly there.

@dgsan
Copy link
Contributor

dgsan commented Apr 16, 2013

I assume you are not happy with code like this (from docs):

    registrationDate: {
        type: Date,
        default: function () { return new Date }
    }

as a way to set defaults and would prefer they were pushed through with the SQL table declaration?

It's on my to-do list, also. It's behind the enhanced type support in priority, though.

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