forgejo/models/migrations
Gergely Nagy 321790a91e
[GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853)
This adds a new `doctor` check: `fix-push-mirrors-without-git-remote`. The new check looks for push mirrors that do not have their remotes configured in git. If automatic fixing is enabled, it will remove these push mirrors from the database.

The check is not run by default, and thus, must be invoked manually. It should be usable in a half-migrated state, too, and as such, fixes #1800.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1853
Co-authored-by: Gergely Nagy <forgejo@gergo.csillger.hu>
Co-committed-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit 9038e07ef3)
(cherry picked from commit b15bafcbc7)
(cherry picked from commit 93ba05a2dd)
(cherry picked from commit e418ea8082)
2023-12-25 13:41:49 +01:00
..
base [GITEA] Drop sha256-simd in favor of stdlib 2023-12-25 13:39:45 +01:00
fixtures Add combined index for issue_user.uid and issue_id (#28080) 2023-12-14 09:26:59 +00:00
v1_6 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_7 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_8 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_9 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_10 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_11 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_12 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_13 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_14 [GITEA] Drop sha256-simd in favor of stdlib 2023-12-25 13:39:45 +01:00
v1_15 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_16 Replace deprecated elliptic.Marshal (#26800) 2023-08-29 22:19:40 +02:00
v1_17 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_18 Refactor system setting (#27000) 2023-10-05 09:08:19 +08:00
v1_19 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_20 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_21 [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2023-12-25 13:41:49 +01:00
v1_22 Add combined index for issue_user.uid and issue_id (#28080) 2023-12-14 09:26:59 +00:00
migrations.go [UPGRADE] run sanity checks before the database is upgraded 2023-12-25 11:00:50 +01:00