limited trac migration
Added by Gerry Hawkins almost 14 years ago
Greetings,
I am evaluating Redmine, I would like to import some data from an existing trac database. But I would like to only import a limited subset of that data. Specifically any ticket with a given milestone, e.g. V3.4. I don't want all of the other tickets, nor the out of date wiki pages. I am OK with supporting custom fields coming over.
0) Is there an equivalent of a "-n" option to just analyze what would be migrated?
1) I am new to Ruby, but I think that I should be able to alter the import logic for all tickets from:
TracTicket.find_each(:batch_size => 200) do |ticket|
to something like:
TracTicketCustom.find_by_sql("SELECT DISTINCT name WHERE #{TracTicketMilestone} == V3.4).each do |ticket|
But I am unsure of the proper syntax for this.
2) Is there a no wiki option or do I just rip that out of the migration script while I run it?
Thanks