summaryrefslogtreecommitdiffstats
path: root/models/migrations
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2017-03-21 01:55:00 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-21 08:55:00 +0800
commitf73e7344111645b836e767bbf80b96834651805f (patch)
tree0315cb59a9b56bcb594d2cd4dccf385557e834ba /models/migrations
parent888dee3b5f931062ea97e57130b26d1943e5173e (diff)
downloadgitea-f73e7344111645b836e767bbf80b96834651805f.tar.gz
gitea-f73e7344111645b836e767bbf80b96834651805f.zip
Run "make fmt" with go-1.6 (#1333)
Diffstat (limited to 'models/migrations')
-rw-r--r--models/migrations/v23.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/models/migrations/v23.go b/models/migrations/v23.go
index efde684104..4aadf7ef0d 100644
--- a/models/migrations/v23.go
+++ b/models/migrations/v23.go
@@ -12,12 +12,11 @@ import (
// UserOpenID is the list of all OpenID identities of a user.
type UserOpenID struct {
- ID int64 `xorm:"pk autoincr"`
- UID int64 `xorm:"INDEX NOT NULL"`
- URI string `xorm:"UNIQUE NOT NULL"`
+ ID int64 `xorm:"pk autoincr"`
+ UID int64 `xorm:"INDEX NOT NULL"`
+ URI string `xorm:"UNIQUE NOT NULL"`
}
-
func addUserOpenID(x *xorm.Engine) error {
if err := x.Sync2(new(UserOpenID)); err != nil {
return fmt.Errorf("Sync2: %v", err)