Skip to content
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

Missing enable_whitelist column on v111 migration #10271

Closed
2 of 7 tasks
blemasle opened this issue Feb 14, 2020 · 3 comments
Closed
2 of 7 tasks

Missing enable_whitelist column on v111 migration #10271

blemasle opened this issue Feb 14, 2020 · 3 comments

Comments

@blemasle
Copy link

blemasle commented Feb 14, 2020

Description

During an update from 1.1.2 to 1.11.0, the v111 migration failed because no enable_whitelist was present in my protected_branch table.

I looked through migration files but couldn't find the addition of that column to the table, and the migration ProtectedBranch struct has no related field either. I had to add that column manually on my SQLite database : alter table protected_branch add column enable_whitelist boolean NOT NULL DEFAULT false;

Not sure if this is related to my gitea installation somehow (which came from the beginning of gogs years go, then gitea etc).

@davidsvantesson
Copy link
Contributor

enable_whitelist has existed for 2 years, since version 1.3.0. It seem to be correct that a migration step for it was missing. It has been some discussion on not supporting direct upgrade from very old installations (maybe that is for 1.12).

@jolheiser
Copy link
Member

Yes, it will be in 1.12. The PR is #10026.

Until then, our recommendation is to update incrementally to each latest point release until 1.6 and then you can jump to the newest version.

@blemasle
Copy link
Author

Wow, I didn't realize my installation was that old. I was on the verge to suggest adding this to the documentation, but realized it is already there under the misleading "From gogs" section.

It might be a good idea to create another section on that documentation. I didn't check that page because I was coming from an old version of gitea, not gogs :)

@lafriks lafriks closed this as completed Feb 16, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants