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

Database migration failed at 20150326093122_add_taggings_counter_cache_to_tags.rb #382

Open
ace280 opened this issue Sep 14, 2020 · 1 comment

Comments

@ace280
Copy link
Contributor

ace280 commented Sep 14, 2020

When running the database migration ( rake redmine:plugins:migrate NAME=redmine_knowledgebase) I ran into an error:

rake aborted!
SyntaxError: D:/redmine-4.1.1_B/plugins/redmine_knowledgebase/db/migrate/20150326093122_add_taggings_counter_cache_to_ta
gs.rb:6: syntax error, unexpected keyword_rescue, expecting keyword_end
rescue
^
D:/redmine-4.1.1_B/lib/redmine/plugin.rb:510:in up' D:/redmine-4.1.1_B/lib/redmine/plugin.rb:542:in migrate_plugin'
D:/redmine-4.1.1_B/lib/redmine/plugin.rb:483:in migrate' D:/redmine-4.1.1_B/lib/redmine/plugin.rb:494:in migrate'
D:/redmine-4.1.1_B/lib/tasks/redmine.rake:135:in `block (3 levels) in <top (required)>'
Tasks: TOP => redmine:plugins:migrate

My workaround was to remove the rescue call in question. Rake was able to finish the migration and the plugin seems to work now. I will keep you updated if I run into any other problems.

grafik

@ace280
Copy link
Contributor Author

ace280 commented Sep 14, 2020

I am not good enough at doing Ruby to know if the Ruby version has something to do with this error, but it is one of hot scents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant