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
Cannot Creating User #88
Comments
Which version of MySQL are you running? I believe this will happen in v5.5 or earlier. |
I using MySQL 5.7. |
Possibly similar situation as in #60 ? |
Hmm, yeah I'd say so. @mimikun are you building from source or using the compiled version we release? Maybe |
I'm using a released compiled version. Should I update |
Okay, if it's our release it'll use the embedded schema.sql. So I assume you're upgrading from a previous version? If so, this is similar to #60 and not a bug. To fix this, you'll have to manually update the database: ALTER TABLE `users` CHANGE `created` `created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE `accesstokens` CHANGE `created` `created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP; I think that should cover everything, but let me know if anything still isn't working. |
Closing this now, since it doesn't appear to be a bug. But feel free to continue discussing here. |
I solved the way. |
Awesome! No problem. |
Describe the bug
I was creating user in shell.
but, an error occurred.
Log:
Steps to reproduce (if necessary)
Steps to reproduce the behavior:
./writefreely -create-user user-name:pass_word
Application configuration
Version or last commit:
The text was updated successfully, but these errors were encountered: