statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
104 stars 71 forks source link

Fix asset uploading bug #252

Closed ryanmitchell closed 3 months ago

ryanmitchell commented 4 months ago

As reported here uploading an asset where the name changes causes a duplicate database entry.

This PR checks the dirty state of the asset to work out if there is a model to update.

Closes https://github.com/statamic/eloquent-driver/issues/251