diff options
author | Giteabot <teabot@gitea.io> | 2023-07-28 17:08:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 11:08:11 +0200 |
commit | ecfbcced46d7a4489fcb94cca138110434423b82 (patch) | |
tree | 22df28790d2a23eab141af5018d85c1d3428b837 /docs/content/doc/upgrade.en-us.md | |
parent | 892e24aaf1b7b623fde20babdff5826158e0e385 (diff) | |
download | gitea-ecfbcced46d7a4489fcb94cca138110434423b82.tar.gz gitea-ecfbcced46d7a4489fcb94cca138110434423b82.zip |
Prevent primary key update on migration (#26192) (#26199)
Backport #26192 by @KN4CK3R
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:
https://gitea.com/xorm/xorm/src/commit/c622cdaf893fbfe3f40a6b79f6bc17ee10f53865/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
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'docs/content/doc/upgrade.en-us.md')
0 files changed, 0 insertions, 0 deletions