1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 17:54:27 +00:00
Aravinth Manivannan ade41f3f04
tests: add coverage for models migration helpers (#18162)
They were previously not covered at all, either by integration tests or unit tests.

This PR also fixes a bug where the `num_comments` field was incorrectly set to include all types of comments.

It sets num_closed_issues: 0 as default in milestone unit test fixtures. If they are not set, Incr("num_closed_issues") will be a noop because the field is null.
2022-01-03 23:35:01 +08:00
..
2022-01-02 21:12:35 +08:00
2022-01-02 21:12:35 +08:00
2022-01-02 21:12:35 +08:00
2021-12-20 04:41:31 +00:00
2022-01-02 21:12:35 +08:00
2021-11-09 20:57:58 +01:00
2022-01-02 21:12:35 +08:00
2021-12-10 16:14:24 +08:00
2021-12-12 23:48:20 +08:00
2021-12-12 23:48:20 +08:00
2021-12-12 23:48:20 +08:00
2022-01-02 21:12:35 +08:00
2022-01-02 21:12:35 +08:00