Project

General

Profile

Actions

Defect #7078

closed

Migration from redmine_subtasks plugin

Added by Dmitry Gurinenko about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
2010-12-08
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

После установки системы Redmine 1.0.2.stable (MySQL) и восстановления старой базы по всем инструкциям со страницы http://www.redmine.org/wiki/redmine/RedmineUpgrade есть проблемы с отображением некоторых страниц в проектах.

Processing IssuesController#index (for ip.add.re.ss at 2010-12-08 14:02:41) [GET]
  Parameters: {"project_id"=>"pt5", "set_filter"=>"1", "action"=>"index", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/index.rhtml

ActionView::TemplateError (undefined method `-' for nil:NilClass) on line #16 of app/views/issues/_list.rhtml:
13:     </tr></thead>
14:     <% previous_group = false %>
15:     <tbody>
16:     <% issue_list(issues) do |issue, level| -%>
17:   <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %>
18:     <% reset_cycle %>
19:     <tr class="group open">

    app/helpers/issues_helper.rb:28:in `issue_list'
    app/helpers/issues_helper.rb:23:in `each'
    app/helpers/issues_helper.rb:23:in `issue_list'
    app/views/issues/_list.rhtml:16:in `_run_rhtml_app47views47issues47_list46rhtml_locals_issues_list_object_query'
    app/views/issues/_list.rhtml:1:in `_run_rhtml_app47views47issues47_list46rhtml_locals_issues_list_object_query'
    app/views/issues/index.rhtml:63:in `_run_rhtml_app47views47issues47index46rhtml'
    app/controllers/issues_controller.rb:84:in `index'
    app/controllers/issues_controller.rb:83:in `index'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendering /var/www/redmine/public/500.html (500 Internal Server Error)

По поиску мне удалось понять, что проблема может быть из-за того, что на старой системе был установлен плагин redmine_subtasks. Сейчас его нет. Если я копирую старую папку этого плагина в vendor/plugins/ новой системы, то на этапе rake db:migrate_plugins RAILS_ENV=production вылазит ошибка:

(in /var/www/redmine)
Migrating engines...
Migrating acts_as_activity_provider...
Migrating acts_as_attachable...
Migrating acts_as_customizable...
Migrating acts_as_event...
Migrating acts_as_list...
Migrating acts_as_searchable...
Migrating acts_as_tree...
Migrating acts_as_versioned...
Migrating acts_as_watchable...
Migrating awesome_nested_set...
Migrating classic_pagination...
Migrating coderay-0.9.2...
Migrating gravatar...
Migrating open_id_authentication...
Migrating prepend_engine_views...
Migrating redmine_subtasks...
==  AddQueriesViewOptions: migrating ==========================================
-- add_column(:queries, :view_options, :text)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Duplicate column name 'view_options': ALTER TABLE `queries` ADD `view_options` text

(See full trace by running task with --trace)

Прошу помощи.


Related issues

Is duplicate of Redmine - Patch #6035: Migration from redmine_subtasks to core subtasking featureClosed2010-08-05

Actions
Actions

Also available in: Atom PDF