danielbrendel / hortusfox-web

Self-hosted collaborative plant management and tracking system for plant enthusiasts
https://www.hortusfox.com
MIT License
674 stars 34 forks source link

Fix import of backup files not working on duplicates #264

Closed danielbrendel closed 2 months ago

danielbrendel commented 2 months ago

When importing data entries from a backup file use INSERT IGNORE in order to prevent aborting on duplicate entries.

Also validate the existence of the data.json file of an import category before trying to import that specific entity dataset.