diff options
author | dlob <dlob@users.noreply.github.com> | 2017-02-14 02:50:00 +0100 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2017-02-13 20:50:00 -0500 |
commit | 5179063e71d7234250209389e6f69db1cd6f0caa (patch) | |
tree | 3715ab896c028c4f53b4f6b797600c488727fc42 /models/migrations | |
parent | ad4bbf517335a6a782def7937de34eed6add6b79 (diff) |
Added mssql support. (#3772)
Diffstat (limited to 'models/migrations')
-rw-r--r-- | models/migrations/migrations.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 71a14960..cf3785c6 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -87,6 +87,7 @@ func Migrate(x *xorm.Engine) error { } else if !has { // If the version record does not exist we think // it is a fresh installation and we can skip all migrations. + currentVersion.ID = 0 currentVersion.Version = int64(_MIN_DB_VER + len(migrations)) if _, err = x.InsertOne(currentVersion); err != nil { |