Skip to content

Commit 7d7a08b

Browse files
lunnyGiteaBot
authored andcommitted
Fix the possible migration failure on 286 with postgres 16 (go-gitea#31209)
Try to fix go-gitea#31205
1 parent b6280f4 commit 7d7a08b

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)