I have updated FlowFuse from 1.13 to 2.4 using the docker-based deployment model and I faced an issue as the forge-docker container could not boot up. The logs showed some information about not being able to create some feature as it already exists.
These are the steps I have followed to fix this issue:
give some hints in the upgrading doc regarding migrations as it seems db migrations are trouble
code-wise:
would it be possible to have in each migration file a check whether the file was already executed and just send a warning instead of having an error like now? I guess this is only feasible for non-breaking changes like adding a new table or a new column.
have a separate log file just for the upgrading process each time it's detected in your docker repo.
Description
I have updated FlowFuse from 1.13 to 2.4 using the docker-based deployment model and I faced an issue as the
forge-docker
container could not boot up. The logs showed some information about not being able to create some feature as it already exists.These are the steps I have followed to fix this issue:
Sequelize
It seems the migration files were executed but Sequelize did not document it correctly into its table. I can't say why.
I could see two areas where there could be an improvement: