diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-06-14 10:22:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 10:22:55 +0800 |
commit | 0393a57511dc863bea4783fbb4b57cd11c41688a (patch) | |
tree | f479085c97ffe419e6fe02c88f6a2730a673fcb8 /models/unit_tests.go | |
parent | a005265718b840d34858a3b705f8133e1b4dbdbf (diff) | |
download | gitea-0393a57511dc863bea4783fbb4b57cd11c41688a.tar.gz gitea-0393a57511dc863bea4783fbb4b57cd11c41688a.zip |
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>
Diffstat (limited to 'models/unit_tests.go')
-rw-r--r-- | models/unit_tests.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/unit_tests.go b/models/unit_tests.go index cefdae2cd6..5a145fa2c0 100644 --- a/models/unit_tests.go +++ b/models/unit_tests.go @@ -103,7 +103,7 @@ func CreateTestEngine(fixturesDir string) error { return err } x.SetMapper(names.GonicMapper{}) - if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil { + if err = syncTables(); err != nil { return err } switch os.Getenv("GITEA_UNIT_TESTS_VERBOSE") { |