doublesecretagency / craft-spoon

Spoon plugin for Craft CMS - Enhance your Matrix fields with groups, tabs and more!
Other
83 stars 7 forks source link

Migration issue going from 3.4.3 => 3.5.2 #91

Open jeremyfrank opened 4 years ago

jeremyfrank commented 4 years ago

I think there may still be an issue in the latest migration file, but I'm not sure exactly what it might be. Similar to #89 and #87.


We recently did a batch of updates, including the following:

  1. update Craft 3.3.20.1 => 3.4.8
  2. update Spoon Plugin 3.4.3 => 3.5.2

Things went smoothly in my dev environment, but upon deploying to our staging environment, the Spoon migrations failed.

> add column groupSortOrder smallint UNSIGNED AFTER `context` to table {{%spoon_blocktypes}} ... done (time: 0.064s)
> add column sortOrder smallint UNSIGNED AFTER `groupSortOrder` to table {{%spoon_blocktypes}} ... done (time: 0.065s)
Exception 'craft\errors\MigrateException' with message 'An error occurred while migrating Spoon.'

When deploying a second time, migrations succeed, but then project-config/sync failed with the error:

Applying changes from project.yaml ... error: Changes to the project config are not possible while in read-only mode.

I then set 'allowAdminChanges' => true and re-ran ./craft project-config/sync and it succeeded.

I set allowAdminChanges back to false (the original setting) and did another deploy to staging. Both migration and project-config/sync steps succeeded without any issues.

baileydoestech commented 4 years ago

We are seeing the same issue (identical version updates)

image

ghost commented 4 years ago

We are having this issue too, getting the same error as @jeremyfrank.