On Wed, Feb 8, 2017 at 9:12 AM Atilio Medina <[email protected]> wrote:

> Hi Ryan,
>
> We have done an upgrade by manually exporting the old sqlite database into
> the new mysql database. The uploads on the old system provided the full
> path.
>

Using the TracMigratePlugin would have been good:
https://trac-hacks.org/wiki/TracMigratePlugin


> The new uploads seem to create some kind of hash to create the directory
> and file name. Is there a way to update either the file locations or the
> references on the database? The attachment table doesn't seem to have any
> references to this new paths. Not sure how it's implemented.
>

You didn't mention which Trac version you were upgrade from and to. I'll
assume you moved from Trac < 1.0 to Trac >= 1.0. Running "trac-admin $env
upgrade" should have migrated the attachments.

The db28.py upgrade script creates hashes for the attachments. You can
invoke it manually as described in the FAQ:
https://trac.edgewall.org/wiki/TracFaq#Q:Attachmentsaremissingafterupgrade
https://trac.edgewall.org/browser/tags/trac-1.2/trac/upgrades/db28.py

- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to