New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate fails in 1.4.3 #8135
Comments
I've seen that before. I think the affected user solved that by migrating first from 1.4.3 to 1.5.0, then step-up gradually until reaching 1.9. |
I did try migrating to 1.5. In fact, I tried all these:
And they all fail with the same message. gitea-1.4.3-linux-amd64 is the latest binary that works. |
I'm closing this issue because it doesn't seem to affect anyone else. I'll launch a new instance and try and migrate the repos from the old version. |
I experienced a similar issue: |
@cryopie why not create the index manualy so gitea can drop it ? |
[x]
):Description
I'm trying to upgrade Gitea from 1.4.3 to anything higher, and it fails to migrate the database. I started with trying to migrate to 1.9, then to 1.6, and then to 1.5. They all fail with:
[I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [watch]
[I] [SQL] SELECT sql FROM sqlite_master WHERE type='table' and name = ? [webhook]
[I] [SQL] SELECT sql FROM sqlite_master WHERE type='index' and tbl_name = ? [webhook]
[I] [SQL] DROP INDEX
IDX_label_"idx_label_IDX_label_repo_id"
[...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Sync2: no such index: IDX_label_"idx_label_IDX_label_repo_id"
How might I fix this in order to upgrade?
The text was updated successfully, but these errors were encountered: