1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-13 00:38:12 -04:00
gitea/models/migrations
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
..
base
fixtures
v1_6
v1_7
v1_8
v1_9
v1_10
v1_11
v1_12
v1_13
v1_14
v1_15
v1_16
v1_17
v1_18
v1_19
v1_20 Prevent primary key update on migration (#26192) 2023-07-28 09:54:31 +02:00
v1_21
migrations.go