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

Error during uninstall #379

Open
uart-aplex opened this issue Aug 10, 2020 · 0 comments
Open

Error during uninstall #379

uart-aplex opened this issue Aug 10, 2020 · 0 comments

Comments

@uart-aplex
Copy link

It seems conflicted when uninstall KM:

rake redmine:plugins:migrate NAME=redmine_knowledgebase VERSION=0 RAILS_ENV=production
== 20150616103300 ChangeColumnArticleToLongText: reverting ====================
== 20150616103300 ChangeColumnArticleToLongText: reverted (0.0000s) ===========

== 20150326093139 AddMissingTaggableIndex: reverting ==========================
== 20150326093139 AddMissingTaggableIndex: reverted (0.0000s) =================

== 20150326093122 AddTaggingsCounterCacheToTags: reverting ====================
-- remove_column(:tags, :taggings_count)
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Mysql2::Error: Can't DROP 'taggings_count'; check that column/key exists: ALTER TABLE tags DROP COLUMN taggings_count
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/plugins/redmine_knowledgebase/db/migrate/20150326093122_add_taggings_counter_cache_to_tags.rb:14:in down' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:520:in down'
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:542:in migrate_plugin' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:483:in migrate'
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:494:in migrate' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/tasks/redmine.rake:135:in block (3 levels) in <top (required)>'

Caused by:
ActiveRecord::StatementInvalid: Mysql2::Error: Can't DROP 'taggings_count'; check that column/key exists: ALTER TABLE tags DROP COLUMN taggings_count
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/plugins/redmine_knowledgebase/db/migrate/20150326093122_add_taggings_counter_cache_to_tags.rb:14:in down' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:520:in down'
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:542:in migrate_plugin' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:483:in migrate'
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:494:in migrate' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/tasks/redmine.rake:135:in block (3 levels) in <top (required)>'

Caused by:
Mysql2::Error: Can't DROP 'taggings_count'; check that column/key exists
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/plugins/redmine_knowledgebase/db/migrate/20150326093122_add_taggings_counter_cache_to_tags.rb:14:in down' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:520:in down'
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:542:in migrate_plugin' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:483:in migrate'
/home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/redmine/plugin.rb:494:in migrate' /home/aplex/redmine-4.1.1-3/apps/redmine/htdocs/lib/tasks/redmine.rake:135:in block (3 levels) in <top (required)>'
Tasks: TOP => redmine:plugins:migrate
(See full trace by running task with --trace)

K0GiHF9S added a commit to K0GiHF9S/redmine_knowledgebase that referenced this issue Nov 12, 2022
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