-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat(model): support postgres schema. #3348
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3348 +/- ##
===========================================
+ Coverage 20.27% 35.04% +14.76%
===========================================
Files 146 280 +134
Lines 29320 40593 +11273
===========================================
+ Hits 5945 14224 +8279
- Misses 22474 24263 +1789
- Partials 901 2106 +1205
Continue to review full report at Codecov.
|
update status: Try the latest version of Gitea source code with update the latest
cc @lunny |
22ee94f
to
6d5db5a
Compare
build errors:
|
@lunny Done. This PR can be review now. |
But CI failed. @appleboy it seems related. |
models/repo.go
Outdated
Join("INNER", "user", "user.id = repository.owner_id"). | ||
Where("repository.lower_name = ?", strings.ToLower(repoName)). | ||
And("user.lower_name = ?", strings.ToLower(ownerName)). | ||
Join("INNER", "user", "`user`.id = repository.owner_id"). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean &User{}
here?
@appleboy please resolve conflict |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions. |
Can this be reviewed for merge? Using schemas makes the management of multiple DBs easier. |
@lkraider conflicts need to be resolved first |
Please resolve the conflicts. |
It seems that this PR will be superseded by #8819 |
fix #2755
create new database and start the gitea.
need @lunny help but it is working for
public
schema.