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

Lint models/org.go #264

Merged
merged 1 commit into from
Nov 27, 2016
Merged

Lint models/org.go #264

merged 1 commit into from
Nov 27, 2016

Conversation

Bwko
Copy link
Member

@Bwko Bwko commented Nov 26, 2016

No description provided.

@lunny lunny added this to the 1.0.0 milestone Nov 26, 2016
@@ -235,37 +237,37 @@ func DeleteOrganization(org *User) (err error) {
// OrgUser represents an organization-user relation.
type OrgUser struct {
ID int64 `xorm:"pk autoincr"`
Uid int64 `xorm:"INDEX UNIQUE(s)"`
UID int64 `xorm:"INDEX UNIQUE(s)"`
Copy link
Member

Choose a reason for hiding this comment

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

The default GonicMapper cannot recognize UID as uid in database. I think you have to add UID to the map in https://github.com/go-gitea/gitea/blob/master/models/models.go#L72

@lunny
Copy link
Member

lunny commented Nov 26, 2016

LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 26, 2016
@strk
Copy link
Member

strk commented Nov 26, 2016

LGTM

@tboerger tboerger added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Nov 26, 2016
@lunny lunny removed the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Nov 27, 2016
@tboerger tboerger merged commit 5efdccd into go-gitea:master Nov 27, 2016
@lunny
Copy link
Member

lunny commented Nov 28, 2016

resolved #70

@Bwko Bwko deleted the lint/org.go branch December 2, 2016 11:32
richmahn pushed a commit to richmahn/gitea that referenced this pull request Jan 18, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/code-linting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants