diff options
author | Unknwon <u@gogs.io> | 2016-07-16 10:08:04 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-16 10:08:04 +0800 |
commit | 52322ef62457541fb914f8e929b2dcd01915c8bc (patch) | |
tree | 74329f2f84de25d797f883dc86e9d7f9117fe9fc /models/migrations | |
parent | a4ea3bd01519a3c7dc3c4cd135c5594c14955046 (diff) | |
download | gitea-52322ef62457541fb914f8e929b2dcd01915c8bc.tar.gz gitea-52322ef62457541fb914f8e929b2dcd01915c8bc.zip |
models/user_mail: refactor EmailAddress
Diffstat (limited to 'models/migrations')
-rw-r--r-- | models/migrations/migrations.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index ea766f4c40..9f8388c37a 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -51,7 +51,7 @@ func (m *migration) Migrate(x *xorm.Engine) error { // The version table. Should have only one row with id==1 type Version struct { - Id int64 + ID int64 `xorm:"pk autoincr"` Version int64 } @@ -76,7 +76,7 @@ func Migrate(x *xorm.Engine) error { return fmt.Errorf("sync: %v", err) } - currentVersion := &Version{Id: 1} + currentVersion := &Version{ID: 1} has, err := x.Get(currentVersion) if err != nil { return fmt.Errorf("get: %v", err) |