]> source.dussan.org Git - gitea.git/commit
Add a new table issue_index to store the max issue index so that issue could be delet...
authorLunny Xiao <xiaolunwen@gmail.com>
Mon, 14 Jun 2021 02:22:55 +0000 (10:22 +0800)
committerGitHub <noreply@github.com>
Mon, 14 Jun 2021 02:22:55 +0000 (10:22 +0800)
commit0393a57511dc863bea4783fbb4b57cd11c41688a
treef479085c97ffe419e6fe02c88f6a2730a673fcb8
parenta005265718b840d34858a3b705f8133e1b4dbdbf
Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599)

* Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index

* Fix pull index

* Add tests for concurrent creating issues

* Fix lint

* Fix tests

* Fix postgres test

* Add test for migration v180

* Rename wrong test file name

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
14 files changed:
models/fixtures/issue.yml
models/fixtures/issue_index.yml [new file with mode: 0644]
models/index.go [new file with mode: 0644]
models/index_test.go [new file with mode: 0644]
models/issue.go
models/issue_test.go
models/issue_xref_test.go
models/migrations/migrations.go
models/migrations/v182.go [new file with mode: 0644]
models/migrations/v182_test.go [new file with mode: 0644]
models/models.go
models/pull.go
models/repo.go
models/unit_tests.go