summaryrefslogtreecommitdiffstats
path: root/models/migrations/v50.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v50.go')
-rw-r--r--models/migrations/v50.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/migrations/v50.go b/models/migrations/v50.go
index a15914f0ee..23b1bb526e 100644
--- a/models/migrations/v50.go
+++ b/models/migrations/v50.go
@@ -40,9 +40,9 @@ func migrateProtectedBranchStruct(x *xorm.Engine) error {
}
switch {
- case setting.UseSQLite3:
+ case setting.Database.UseSQLite3:
log.Warn("Unable to drop columns in SQLite")
- case setting.UseMySQL, setting.UsePostgreSQL, setting.UseMSSQL, setting.UseTiDB:
+ case setting.Database.UseMySQL, setting.Database.UsePostgreSQL, setting.Database.UseMSSQL:
if _, err := x.Exec("ALTER TABLE protected_branch DROP COLUMN can_push"); err != nil {
// Ignoring this error in case we run this migration second time (after migration reordering)
log.Warn("DROP COLUMN can_push (skipping): %v", err)