プロジェクト

全般

プロフィール

Vote #77609

未完了

migrate_from_trac.rake - NOT WORKING WITH trac 1.0.1

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Importers_15
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
15
version_id:
0
issue_org_id:
23268
author_id:
154697
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
110
ステータス-->[New]

説明

hello,

i am trying to import data from trac 1.0.1 + mysql.

there are several issues:

1.
self.inheritance_column = :none instead of set_inheritance_column :none
self.primary_key = 'name' instead of #set_primary_key :name

2.
#784 def self.trac_attachments_directory; "#{trac_directory}/files/attachments"

3.
Migrating components..................
Migrating milestones.rake aborted!
TypeError: no implicit conversion from nil to integer
/var/lib/redmine/lib/tasks/migrate_from_trac.rake:422:in []'
/var/lib/redmine/lib/tasks/migrate_from_trac.rake:422:in
block in migrate'
/var/lib/gems/1.9.1/gems/activerecord-4.2.6/lib/active_record/relation/delegation.rb:46:in each'
/var/lib/gems/1.9.1/gems/activerecord-4.2.6/lib/active_record/relation/delegation.rb:46:in
each'
/var/lib/redmine/lib/tasks/migrate_from_trac.rake:410:in `migrate'

4.
Migrating components..................
Migrating custom fields
Migrating ticketsrake aborted!
ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'defect'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite TracMigrate::TracTicket.inheritance_column to use another column for that information.
/var/lib/gems/1.9.1/gems/activerecord-4.2.6/lib/active_record/inheritance.rb:186:in `rescue in find_sti_clas

and I can not get further

please, someone can code new script for newer trac version?

migrate_from_trac_version_1.rake

many thanks


journals

+ in the beginning, when script asks which adapter (... mysql2 ...), script is expecting to receive "mysql", not "mysql2", and as adapter has mysql2 name, it is conficting with human logic.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Please see also #20943 for improvements to the migration scripts.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Resolved,20943,migrate_from_trac.rake dont work

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0