i am trying to upgrade one of my sites up from Craft 3.6.17 to 3.7 and if i try and upgrade at all i just seem to get the following errors:

Any ideas what I need to do?

Database Exception: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'sortOrder'
The SQL being executed was: ALTER TABLE globalsets ADD sortOrder smallint(6) UNSIGNED AFTER fieldLayoutId

Migration: craft\migrations\m210613_145522_sortable_global_sets

1 Answer 1


This is likely because a previous attempt at updating failed, and the database wasn't reverted back to its prior state. Your best bet would be to import your backup from before the upgrade attempt and start fresh.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.