gitea/models/project
Lunny Xiao 40cdc84b36
Fix migration v292 ()
Fix https://github.com/go-gitea/gitea/pull/29874#discussion_r1542227686

- The migration of v292 will miss many projects. These projects will
have no default board. This PR introduced a new migration number and
removed v292 migration.

- This PR also added the missed transactions on project-related
operations.

- Only `SetDefaultBoard` will remove duplicated defaults but not in
`GetDefaultBoard`
..
board.go Fix migration v292 ()
board_test.go Fix migration v292 ()
issue.go More `db.DefaultContext` refactor ()
main_test.go make writing main test easier ()
project.go remove util.OptionalBool and related functions ()
project_test.go Add default board to new projects, remove uncategorized pseudo-board ()