aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_13/v151.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v1_13/v151.go')
-rw-r--r--models/migrations/v1_13/v151.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/migrations/v1_13/v151.go b/models/migrations/v1_13/v151.go
index 9aa71ec29f..25af1d03ec 100644
--- a/models/migrations/v1_13/v151.go
+++ b/models/migrations/v1_13/v151.go
@@ -77,14 +77,14 @@ func SetDefaultPasswordToArgon2(x *xorm.Engine) error {
type User struct {
PasswdHashAlgo string `xorm:"NOT NULL DEFAULT 'argon2'"`
}
- return x.Sync2(new(User))
+ return x.Sync(new(User))
}
column := table.GetColumn("passwd_hash_algo")
if column == nil {
type User struct {
PasswdHashAlgo string `xorm:"NOT NULL DEFAULT 'argon2'"`
}
- return x.Sync2(new(User))
+ return x.Sync(new(User))
}
tempTableName := "tmp_recreate__user"