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

Fix column droping for MySQL that need a new session for the new transaction #4459

Closed

Conversation

back2root
Copy link

Finally Fixes #4360

Through PR #4440 an issue within migration scripts was introduced if running gitea with MySQL as Database.
This PR completely closes the database session and reopenes a new one to circumvent this issue. There may be a more performant solution. However, as this is only done once this solution should be sufficient.

@back2root back2root mentioned this pull request Jul 17, 2018
7 tasks
@codecov-io
Copy link

Codecov Report

Merging #4459 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4459   +/-   ##
=======================================
  Coverage   20.08%   20.08%           
=======================================
  Files         155      155           
  Lines       31099    31099           
=======================================
  Hits         6245     6245           
  Misses      23898    23898           
  Partials      956      956

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1bff02d...a4a7dd0. Read the comment docs.

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 17, 2018
@lafriks
Copy link
Member

lafriks commented Jul 19, 2018

This PR workarounds issue in xorm. I have updated xorm in #4473 that fixes these migrations without changing actual migration code

@lunny
Copy link
Member

lunny commented Jul 20, 2018

@back2root please confirm #4473 fix your problem.

@lafriks
Copy link
Member

lafriks commented Jul 20, 2018

@lunny I tested with PostgreSQL and after updating xorm it fixed the issue

@lafriks
Copy link
Member

lafriks commented Jul 20, 2018

@back2root I'm closing PRs, reopen if really still needed

@lafriks lafriks closed this Jul 20, 2018
@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
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on startup 1.5
5 participants