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.
forgejo/models
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
1 year ago
..
actions Fix wrong workflow status when rerun a job in an already finished workflow (#26119) 1 year ago
activities Add context parameter to some database functions (#26055) 1 year ago
admin Replace `interface{}` with `any` (#25686) 1 year ago
asymkey Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
auth Remove "misc" scope check from public API endpoints (#26134) 1 year ago
avatars Avoid warning for system setting when start up (#23054) 1 year ago
db Replace `interface{}` with `any` (#25686) 1 year ago
dbfs Fix content holes in Actions task logs file (#25560) 1 year ago
fixtures Fix incorrect oldest sort in project list (#25806) 1 year ago
git Fix bugs in LFS meta garbage collection (#26122) 1 year ago
issues Add context parameter to some database functions (#26055) 1 year ago
migrations Prevent primary key update on migration (#26192) 1 year ago
organization Remove unused code (#25734) 1 year ago
packages Test if container blob is accessible before mounting (#22759) 1 year ago
perm some less naked returns (#25682) 1 year ago
project Update xorm version (#26128) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Release attachments duplicated check (#26176) 1 year ago
secret Support configuration variables on Gitea Actions (#24724) 1 year ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 1 year ago
system Replace `interface{}` with `any` (#25686) 1 year ago
unit Rewrite logger system (#24726) 1 year ago
unittest Replace `interface{}` with `any` (#25686) 1 year ago
user Fix inconsistent user profile layout across tabs (#25625) 1 year ago
webhook Replace `interface{}` with `any` (#25686) 1 year ago
error.go Sync branches into databases (#22743) 1 year ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Merge setting.InitXXX into one function with options (#24389) 1 year ago
migrate.go Add context parameter to some database functions (#26055) 1 year ago
migrate_test.go Add context parameter to some database functions (#26055) 1 year ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Remove org users who belong to no teams (#24247) 1 year ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Update tool dependencies, lock govulncheck and actionlint (#25655) 1 year ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 1 year ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago