zeripath 4b8b214108 Create doctor command to fix repo_units broken by dumps from 1.14.3-1.14.6 (#17136) (#17137)
Backport #17136

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

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-09-27 18:30:11 +01:00
..
2021-04-01 19:41:09 +02:00
2021-06-07 07:27:09 +02:00
2021-04-19 18:25:08 -04:00
2021-04-19 18:25:08 -04:00
2021-04-17 10:27:25 +01:00
2021-04-12 10:49:26 -04:00
2021-07-21 20:19:36 +08:00
2021-05-03 13:24:24 -04:00
2021-07-21 20:19:36 +08:00