ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

migrate_from_trac.rake.diff

Patch for trac migration script of ChiliProject 2.1.1 (release) to fix missing module scope - Chris Dähn, 2011-09-12 07:51 pm

Download (1.6 kB)

 
migrate_from_trac.rake 2011-09-12 21:29:53.592367290 +0200
160 160
        set_inheritance_column :none
161 161

  
162 162
        # ticket changes: only migrate status changes and comments
163
        has_many :changes, :class_name => "TracTicketChange", :foreign_key => :ticket
164
        has_many :attachments, :class_name => "TracAttachment",
163
        has_many :changes, :class_name => "TracMigrate::TracTicketChange", :foreign_key => :ticket
164
        has_many :attachments, :class_name => "TracMigrate::TracAttachment",
165 165
                               :finder_sql => "SELECT DISTINCT attachment.* FROM #{TracMigrate::TracAttachment.table_name}" +
166 166
                                              " WHERE #{TracMigrate::TracAttachment.table_name}.type = 'ticket'" +
167 167
                                              ' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{TracMigrate::TracAttachment.connection.quote_string(id.to_s)}\''
......
201 201
        set_table_name :wiki
202 202
        set_primary_key :name
203 203

  
204
        has_many :attachments, :class_name => "TracAttachment",
204
        has_many :attachments, :class_name => "TracMigrate::TracAttachment",
205 205
                               :finder_sql => "SELECT DISTINCT attachment.* FROM #{TracMigrate::TracAttachment.table_name}" +
206 206
                                      " WHERE #{TracMigrate::TracAttachment.table_name}.type = 'wiki'" +
207 207
                                      ' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{TracMigrate::TracAttachment.connection.quote_string(id.to_s)}\''