You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
2 years ago
..
base Replace `interface{}` with `any` (#25686) 2 years ago
fixtures Remove wrongly added column on migration test fixtures (#23456) 2 years ago
v1_6 Replace `interface{}` with `any` (#25686) 2 years ago
v1_7 Update go dev dependencies (#22064) 2 years ago
v1_8 Replace `interface{}` with `any` (#25686) 2 years ago
v1_9 Update go dev dependencies (#22064) 2 years ago
v1_10 Replace `interface{}` with `any` (#25686) 2 years ago
v1_11 Less naked returns (#25713) 2 years ago
v1_12 Refactor `setting.Database.UseXXX` to methods (#23354) 2 years ago
v1_13 Less naked returns (#25713) 2 years ago
v1_14 Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
v1_15 Less naked returns (#25713) 2 years ago
v1_16 Replace `interface{}` with `any` (#25686) 2 years ago
v1_17 Drop migration for ForeignReference (#23605) 2 years ago
v1_18 Refactor `setting.Database.UseXXX` to methods (#23354) 2 years ago
v1_19 Replace `interface{}` with `any` (#25686) 2 years ago
v1_20 Prevent primary key update on migration (#26192) 2 years ago
v1_21 Drop the correct deleted branch table (#26028) 2 years ago
migrations.go Drop the correct deleted branch table (#26028) 2 years ago