Create doctor command to fix repo_units broken by dumps from 1.14.3-1.14.6 #17136

Merged
lunny merged 9 commits from fix-16961-add-doctor into main 2021-09-27 15:55:12 +00:00
Contributor

There was a serious issue with the gitea dump command in 1.14.3-1.14.6 which led to corruption of the config field of the repo_unit table.

This PR adds a doctor command to attempt to fix the broken repo_units. Users affected by #16961 should run:

gitea doctor --fix --run fix-broken-repo-units

Fix #16961
Fix #17297

Signed-off-by: Andrew Thornton art27@cantab.net

There was a serious issue with the `gitea dump` command in 1.14.3-1.14.6 which led to corruption of the `config` field of the `repo_unit` table. This PR adds a doctor command to attempt to fix the broken repo_units. Users affected by #16961 should run: ``` gitea doctor --fix --run fix-broken-repo-units ``` Fix #16961 Fix #17297 Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick reviewed 2021-09-27 13:40:48 +00:00
// Copyright 2021 The Gitea Authors. All rights reserved.
```suggestion // Copyright 2021 The Gitea Authors. All rights reserved. ```
techknowlogick reviewed 2021-09-27 13:41:49 +00:00
// Copyright 2021 The Gitea Authors. All rights reserved.
```suggestion // Copyright 2021 The Gitea Authors. All rights reserved. ```
techknowlogick approved these changes 2021-09-27 13:43:05 +00:00
6543 (Migrated from github.com) approved these changes 2021-09-27 14:20:20 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#17136
No description provided.