forgejo/models/migrations/v1_20
KN4CK3R 7866a6e0e2
Prevent primary key update on migration (#26192)
Fixes #25918

The migration fails on MSSQL because xorm tries to update the primary
key column. xorm prevents this if the column is marked as auto
increment:

c622cdaf89/internal/statements/update.go (L38-L40)

I think it would be better if xorm would check for primary key columns
here because updating such columns is bad practice. It looks like if
that auto increment check should do the same.

fyi @lunny
2023-07-28 09:54:31 +02:00
..
main_test.go
v244.go
v245.go
v246.go
v247.go
v248.go
v249.go
v250.go
v251.go
v252.go
v253.go
v254.go
v255.go
v256.go
v257.go
v258.go
v259.go
v259_test.go