Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save daipresents/0bf9aa01fbdb38744e1122d0a89d8aef to your computer and use it in GitHub Desktop.

Select an option

Save daipresents/0bf9aa01fbdb38744e1122d0a89d8aef to your computer and use it in GitHub Desktop.
Redmine BacklogsインストールでUnknown column 'issues.position'
ActiveRecord::StatementInvalid (Mysql::ServerError::BadFieldError: Unknown column 'issues.position' in 'order clause': SELECT `issues`.* FROM `issues` INNER JOIN `issue_statuses` ON `issue_statuses`.id = `issues`.status_id WHERE (
parent_id is NULL
and project_id = 1
and tracker_id in (5)
and fixed_version_id is NULL
and is_closed = 0) ORDER BY case when issues.position is null then 1 else 0 end ASC, case when issues.position is NULL then issues.id else issues.position end ASC):
vendor/plugins/redmine_backlogs/app/models/story.rb:38:in `backlog'
vendor/plugins/redmine_backlogs/app/models/story.rb:51:in `product_backlog'
vendor/plugins/redmine_backlogs/app/controllers/rb_master_backlogs_controller.rb:7:in `show'
rake db:migrate:plugins RAILS_ENV=production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment