diff options
author | Unknwon <u@gogs.io> | 2017-02-26 04:37:05 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-27 22:48:19 -0500 |
commit | ca2cfaf71e33f42c00f5baf4792ba8396e6d0042 (patch) | |
tree | 51a06e4506b3d7314a03d7f905a4c35d018a0a3b /models/migrations | |
parent | b06f2997489d58cc5a4375044e378c0565ea09d4 (diff) |
cmd: able to backup and restore
Not very robust, must execute under correct workdir.
Addresses #2072, #3708, #648
Diffstat (limited to 'models/migrations')
-rw-r--r-- | models/migrations/migrations.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 765ad93c..e543ae62 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -42,7 +42,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 `xorm:"pk autoincr"` + ID int64 Version int64 } |