Skip to content

Commit 68e405c

Browse files
GiteaBotlunny
andauthored
Fix the possible migration failure on 286 with postgres 16 (#31209) (#31218)
Backport #31209 by @lunny Try to fix #31205 Co-authored-by: Lunny Xiao <[email protected]>
1 parent b6280f4 commit 68e405c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/migrations/v1_22/v286.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func addObjectFormatNameToRepository(x *xorm.Engine) error {
9292

9393
// Here to catch weird edge-cases where column constraints above are
9494
// not applied by the DB backend
95-
_, err := x.Exec("UPDATE repository set object_format_name = 'sha1' WHERE object_format_name = '' or object_format_name IS NULL")
95+
_, err := x.Exec("UPDATE `repository` set `object_format_name` = 'sha1' WHERE `object_format_name` = '' or `object_format_name` IS NULL")
9696
return err
9797
}
9898

0 commit comments

Comments
 (0)