joomlatools / joomlatools-framework

Modern PHP extension framework (for Joomla)
https://www.joomlatools.com/developer/framework/
GNU General Public License v3.0
19 stars 11 forks source link

Migrator assets rebuild with inconsistent exported data #667

Closed amazeika closed 11 months ago

amazeika commented 1 year ago

The problem

It could very well be that the assets table contains leftovers from either documents or categories that do not longer exist in DOCman. It could also be that there are document asset entries pointing to no longer existing categories in DOCman (the case for this customer).

We should do our best for avoid the migrator from failing during the import step.

The solution

During the set_asset_parents step, we should 1st cleanup (as in deleting) all DOCman assets that are no longer pointing to a DOCman resource.

This alone should solve it.

Support tickets