Fix the possible migration failure on 286 with postgres 16 (#31209)

Try to fix #31205
pull/31219/head
Lunny Xiao 6 months ago committed by GitHub
parent 3cc7f763c3
commit 98a61040b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      models/migrations/v1_22/v286.go

@ -92,7 +92,7 @@ func addObjectFormatNameToRepository(x *xorm.Engine) error {
// Here to catch weird edge-cases where column constraints above are // Here to catch weird edge-cases where column constraints above are
// not applied by the DB backend // not applied by the DB backend
_, err := x.Exec("UPDATE repository set object_format_name = 'sha1' WHERE object_format_name = '' or object_format_name IS NULL") _, err := x.Exec("UPDATE `repository` set `object_format_name` = 'sha1' WHERE `object_format_name` = '' or `object_format_name` IS NULL")
return err return err
} }

Loading…
Cancel
Save