https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-02-03T21:15:57ZRedmineRedmine - Defect #595: Problem migrating from multiple trac projectshttps://www.redmine.org/issues/595?journal_id=11522008-02-03T21:15:57ZTomoki Tsuchida
<ul></ul><p>I have worked around this problem by modifying <code>lib/tasks/migrate_from_trac.rake</code>: I added</p>
<pre>
def self.reset_pk(klass)
klass.connection.reset_pk_sequence!(klass.table_name) if klass.connection.respond_to?('reset_pk_sequence!')
end
</pre>
<p>and for each of the business objects</p>
<pre>
reset_pk WikiContent
reset_pk Wiki
</pre>
<p>etc. After this, I could import multiple projects and create new issues without failure.</p> Redmine - Defect #595: Problem migrating from multiple trac projectshttps://www.redmine.org/issues/595?journal_id=11532008-02-03T21:40:48ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>This problem was fixed in <a class="changeset" title="Fixed: PostgreSQL issues_seq_id not updated when using Trac importer." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1099">r1099</a> for postgresql (it doesn't occur with mysql and sqlite).<br />Note that only the sequence on the 'issues' table need to be updated.</p>
<p>Btw, I'll change my fix to use reset_sequence! instead. Thanks.</p> Redmine - Defect #595: Problem migrating from multiple trac projectshttps://www.redmine.org/issues/595?journal_id=11622008-02-04T18:01:17ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul> Redmine - Defect #595: Problem migrating from multiple trac projectshttps://www.redmine.org/issues/595?journal_id=20762008-03-29T23:01:50ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>0.7</i></li></ul>