diff options
author | Giteabot <teabot@gitea.io> | 2024-06-02 15:19:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-02 10:19:30 +0300 |
commit | 68e405cf0b00e475c089d8b94cc076d269ab9bb9 (patch) | |
tree | 8caba949310813cb0bed0f4b2eb40c48313a7365 /models | |
parent | b6280f4d21309cfae7cc07f74173354c664d5e10 (diff) | |
download | gitea-68e405cf0b00e475c089d8b94cc076d269ab9bb9.tar.gz gitea-68e405cf0b00e475c089d8b94cc076d269ab9bb9.zip |
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 <xiaolunwen@gmail.com>
Diffstat (limited to 'models')
-rw-r--r-- | models/migrations/v1_22/v286.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v1_22/v286.go b/models/migrations/v1_22/v286.go index e11d16f8de..6ad669f27c 100644 --- a/models/migrations/v1_22/v286.go +++ b/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 // 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 } |