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 dump table name error and add some test for dump database #6394

Merged
merged 4 commits into from
Mar 21, 2019

Conversation

lunny
Copy link
Member

@lunny lunny commented Mar 20, 2019

Will fix #6310 and replace #6385

@lunny lunny added the type/bug label Mar 20, 2019
@lunny lunny added this to the 1.8.0 milestone Mar 20, 2019
@codecov-io
Copy link

codecov-io commented Mar 20, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@75601a8). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #6394   +/-   ##
=========================================
  Coverage          ?   38.86%           
=========================================
  Files             ?      365           
  Lines             ?    51389           
  Branches          ?        0           
=========================================
  Hits              ?    19971           
  Misses            ?    28546           
  Partials          ?     2872
Impacted Files Coverage Δ
models/models.go 56.41% <100%> (ø)
models/models_sqlite.go 100% <100%> (ø)

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 75601a8...3e94a46. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 20, 2019
@lunny
Copy link
Member Author

lunny commented Mar 20, 2019

Will add some dump integration tests after this merged.

@lunny lunny modified the milestones: 1.8.0, 1.9.0 Mar 20, 2019
models/models.go Outdated
x *xorm.Engine
tables []interface{}
x *xorm.Engine
supportedDatabse = []string{"mysql", "postgres", "mssql"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small typo nit, should be supportedDatabase or supportedDatabases and refactored as needed where used.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. It's strange that misspell check failed.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 20, 2019
@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 Mar 20, 2019
@axifive
Copy link
Member

axifive commented Mar 20, 2019

but need to run fmt

@techknowlogick techknowlogick merged commit 91dcccf into go-gitea:master Mar 21, 2019
@techknowlogick
Copy link
Member

@lunny merged. Please backport 😄

@lunny lunny deleted the lunny/fix_dump branch March 21, 2019 06:36
@lunny lunny added the backport/done All backports for this PR have been created label Mar 21, 2019
@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
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.

Failed to dump database: pq: relation "o_auth2_application" does not exist
7 participants