Skip to content

Fix setting version table in dump #15753

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

Merged
merged 2 commits into from
May 6, 2021

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented May 6, 2021

As noted on Discord there is a problem with gitea dump where the version table
is not being dumped correctly.

This is due to a missing pointer in the TableInfo.

This PR fixes this.

Fix #15678

Signed-off-by: Andrew Thornton [email protected]

As noted on Discord there is a problem with gitea dump where the version table
is not being dumped correctly.

This is due to a missing pointer in the TableInfo.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 6, 2021
@zeripath zeripath mentioned this pull request May 6, 2021
7 tasks
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 6, 2021
@zeripath
Copy link
Contributor Author

zeripath commented May 6, 2021

Agh there's a bug in the testcase

@zeripath
Copy link
Contributor Author

zeripath commented May 6, 2021

Make lgtm work

@zeripath zeripath merged commit edb8389 into go-gitea:main May 6, 2021
@zeripath zeripath deleted the fix-setting-version-table-in-dump branch May 6, 2021 23:17
@6543
Copy link
Member

6543 commented May 7, 2021

@zeripath please send a backport :)

zeripath added a commit to zeripath/gitea that referenced this pull request May 7, 2021
Backport go-gitea#15753

* Fix setting version table in dump

As noted on Discord there is a problem with gitea dump where the version table
is not being dumped correctly.

This is due to a missing pointer in the TableInfo.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>

* Update models_test.go
@zeripath zeripath added the backport/done All backports for this PR have been created label May 7, 2021
6543 pushed a commit that referenced this pull request May 7, 2021
Backport #15753

* Fix setting version table in dump

As noted on Discord there is a problem with gitea dump where the version table
is not being dumped correctly.

This is due to a missing pointer in the TableInfo.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>

* Update models_test.go
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 10, 2021
* Fix setting version table in dump

As noted on Discord there is a problem with gitea dump where the version table
is not being dumped correctly.

This is due to a missing pointer in the TableInfo.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>

* Update models_test.go
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to restore a Gitea dump
5 participants