aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_10/v91.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v1_10/v91.go')
-rw-r--r--models/migrations/v1_10/v91.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/migrations/v1_10/v91.go b/models/migrations/v1_10/v91.go
index 9b5fefb1d0..48cac2de70 100644
--- a/models/migrations/v1_10/v91.go
+++ b/models/migrations/v1_10/v91.go
@@ -11,7 +11,7 @@ func AddIndexOnRepositoryAndComment(x *xorm.Engine) error {
OwnerID int64 `xorm:"index"`
}
- if err := x.Sync2(new(Repository)); err != nil {
+ if err := x.Sync(new(Repository)); err != nil {
return err
}
@@ -21,5 +21,5 @@ func AddIndexOnRepositoryAndComment(x *xorm.Engine) error {
ReviewID int64 `xorm:"index"`
}
- return x.Sync2(new(Comment))
+ return x.Sync(new(Comment))
}