Closed PFEW-ITSD closed 1 month ago
@PFEW-ITSD Yes depending on what version you are updating from the migrations are somewhat messy. We've taken a new approach from v4 on which should prevent this from happening going forward, but that doesn't help you.
It looks like you need to drop the 'assets_meta_handle_index' index in a migration or manually for that migration to run.
It looks like you need to drop the 'assets_meta_handle_index' index in a migration or manually for that migration to run.
That seems to have resolved that, thanks @ryanmitchell! I did have the same issue with both form_submissions_form_id
indexes as well, plus there was a duplicate migration for updating the assets_meta
table but I just manually inserted that migration into the database to skip it and now everything seems to be uploading as normal
Bug description
On an existing project, I've updated both Statamic (from 4.55 to 5.4) and Eloquent Driver (from 2.4 to 4.0) and now I'm trying to run the migrations to get the assets to work, but I'm encountering issues between the
handle
andcontainer
columns.How to reproduce
php artisan migrate
- this should bring up this error:create_asset_table
migration to separate migration and runphp artisan migrate:rollback
to drop the tablephp artisan migrate
again and this error comes up:Logs
No response
Environment
Additional details
No response