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
Giteabot ecfbcced46
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:

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

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2 years ago
..
actions Fix wrong workflow status when rerun a job in an already finished workflow (#26119) (#26124) 2 years ago
activities Use a separate admin page to show global stats, remove `actions` stat (#25062) 2 years ago
admin Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
asymkey Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
auth Remove "misc" scope check from public API endpoints (#26134) (#26149) 2 years ago
avatars Avoid warning for system setting when start up (#23054) 2 years ago
db Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
dbfs Fix content holes in Actions task logs file (#25560) (#25566) 2 years ago
fixtures Fix incorrect oldest sort in project list (#25806) (#25835) 2 years ago
git Fix bugs in LFS meta garbage collection (#26122) (#26157) 2 years ago
issues Fix bug when pushing to a pull request which enabled dismiss approval automatically (#25882) (#26158) 2 years ago
migrations Prevent primary key update on migration (#26192) (#26199) 2 years ago
organization Remove unused code (#25734) (#25788) 2 years ago
packages Test if container blob is accessible before mounting (#22759) (#25784) 2 years ago
perm Rewrite logger system (#24726) 2 years ago
project Update xorm version (#26128) (#26150) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo For API attachments, use API URL (#25639) (#25814) 2 years ago
secret Respect original content when creating secrets (#24745) 2 years ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
unit Rewrite logger system (#24726) 2 years ago
unittest Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
user Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
webhook Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years 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) 2 years ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years 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) 2 years 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 Replace `interface{}` with `any` (#25686) (#25687) 2 years 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) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago