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

mysql5.7 fails on migration of VERSION=4 #40

Closed
cat-in-136 opened this issue Jan 13, 2019 · 1 comment · Fixed by #41
Closed

mysql5.7 fails on migration of VERSION=4 #40

cat-in-136 opened this issue Jan 13, 2019 · 1 comment · Fixed by #41
Labels

Comments

@cat-in-136
Copy link
Owner

Executing bundle exec rake redmine:plugins NAME=redmine_scheduling_poll fails as follows:

== 4 AddTimestampToSchedulingPollItemsAndFixTimestampOfSchedulingVotes: migrating 
-- change_table(:scheduling_poll_items, {})
   -> 1.0714s
-- rename_column(:scheduling_votes, :create_at, :created_at)
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Mysql2::Error: Invalid default value for 'created_at': ALTER TABLE `scheduling_votes` CHANGE `create_at` `created_at` timestamp DEFAULT NULL

Environment:

  • mysql 5.7 (using docker.io/mysql:5.7 container)
  • redmine 4.0
  • ruby 2.5.3p105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant