Closed Stevehans closed 3 years ago
Just realised the issue, explanation here as a clue to anybody havng a search with similar issue.
I had pulled back a v3 database over a v4 database, so the schema_migrations table said it was v3, but as it had previously been v4 the dashboards table existed, this is what was causing the issue.
Bottom line, if you restore an earlier database you must drop and recreate the schema as you need the schema to be consistent with the schema_migrations table
Looks like it needs to check whether it exists before an attempt to create.
Dropping the index then fails on the table already existing.
Problem is, I'm running this as a docker image and the clean build reinstalls all the plugins, and the failure stops the build.
Not sure whether this is something that needs to go in db/migrate or whether this is an issue with redmine and migration in general?