forgejo/models/migrations/v1_22
Denys Konovalov 8ffb9c6fb1
Add default board to new projects, remove uncategorized pseudo-board (#29874)
On creation of an empty project (no template) a default board will be
created instead of falling back to the uneditable pseudo-board.

Every project now has to have exactly one default boards. As a
consequence, you cannot unset a board as default, instead you have to
set another board as default. Existing projects will be modified using a
cron job, additionally this check will run every midnight by default.

Deleting the default board is not allowed, you have to set another board
as default to do it.

Fixes #29873
Fixes #14679 along the way
Fixes #29853

Co-authored-by: delvh <dev.lh@web.de>
(cherry picked from commit e5160185ed65fd1c2bcb2fc7dc7e0b5514ddb299)

Conflicts:
	options/locale/locale_en-US.ini
	trivial conflict because Forgejo strings do not have
	surrounding double quotes
2024-03-30 07:17:31 +01:00
..
main_test.go Add combined index for issue_user.uid and issue_id (#28080) 2023-12-14 09:26:59 +00:00
v280.go
v281.go Enhanced auth token / remember me (#27606) 2023-10-14 00:56:41 +00:00
v282.go Add Index to pull_auto_merge.doer_id (#27811) 2023-10-30 08:39:29 +00:00
v283.go Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-11 23:36:59 +07:00
v283_test.go Fix migration test (#28659) 2023-12-30 21:54:48 +08:00
v284.go Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
v285.go Fix incorrect action duration time when rerun the job before executed once (#28364) 2024-01-19 14:05:49 +00:00
v286.go Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-11 23:36:59 +07:00
v286_test.go Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-11 23:36:59 +07:00
v287.go Add admin API route for managing user's badges (#23106) (database migration ony) 2024-03-11 23:36:59 +07:00
v288.go Add user blocking (#29028) (database migration ony) 2024-03-11 23:36:59 +07:00
v289.go Make wiki default branch name changable (#29603) (database migration ony) 2024-03-11 23:36:59 +07:00
v290.go add test for webhook migration 2024-03-11 23:37:00 +07:00
v290_test.go add test for webhook migration 2024-03-11 23:37:00 +07:00
v291.go Do some performance optimize for issues list and view issue/pull (#29515) (migration only) 2024-03-30 07:17:31 +01:00
v292.go Add default board to new projects, remove uncategorized pseudo-board (#29874) 2024-03-30 07:17:31 +01:00
v292_test.go Add default board to new projects, remove uncategorized pseudo-board (#29874) 2024-03-30 07:17:31 +01:00