gitea/models/migrations
zeripath c34ad62eea
Mulitple Gitea Doctor improvements (#10943) (#10990) (#10064) (#9095) (#10991)
* Mulitple Gitea Doctor improvements (#10943)

Backport #10943

* Add `gitea doctor --list` flag to list the checks that will be run, including those by default
* Add `gitea doctor --run` to run specific checks
* Add `gitea doctor --all` to run all checks
* Add db version checker
* Add non-default recalculate merge bases check/fixer to doctor
* Add hook checker (Fix #9878) and ensure hooks are executable (Fix #6319)
* Fix authorized_keys checker - slight change of functionality here because parsing the command is fragile and we should just check if the authorized_keys file is essentially the same as what gitea would produce. (This is still not perfect as order matters - we should probably just md5sum the two files.)
* Add SCRIPT_TYPE check (Fix #10977)
* Add `gitea doctor --fix` to attempt to fix what is possible to easily fix
* Add `gitea doctor --log-file` to set the log-file, be it a file, stdout or to switch off completely. (Fixes previously undetected bug with certain xorm logging configurations - see @6543 comment.)

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

* Switch to io.Writer instead of io.StringWriter

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-04-06 16:15:20 -04:00
..
migrations.go Mulitple Gitea Doctor improvements (#10943) (#10990) (#10064) (#9095) (#10991) 2020-04-06 16:15:20 -04:00
v13.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v14.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v15.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v16.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v17.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v18.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v19.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v20.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v21.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v22.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v23.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v24.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v25.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v26.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v27.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v28.go Stop using git count-objects and use raw directory size for repository (#8848) 2019-11-10 21:33:47 +00:00
v29.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v30.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v31.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v32.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v33.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v34.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v35.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v36.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v37.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v38.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v39.go Move some repository methods from models to modules/repository (#9353) 2019-12-14 18:30:01 +01:00
v40.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v41.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v45.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v46.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v47.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v48.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v49.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v50.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v51.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v52.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v53.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v54.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v55.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v56.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v57.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v58.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v59.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v60.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v61.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v62.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v63.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v64.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v65.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v66.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v67.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v68.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v69.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v70.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v71.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v72.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v73.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v74.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v75.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v76.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v77.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v78.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v79.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v80.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v81.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v82.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
v83.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v84.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v85.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v86.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v87.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v88.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v89.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v90.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v91.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v92.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v93.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v94.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v95.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v96.go Fix migration bug on v96.go (#10572) (#10573) 2020-03-02 10:32:20 -06:00
v97.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v98.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v99.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v100.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v101.go Allow more than 255 characters for tokens in external_login_user table (#8554) 2019-10-18 09:58:36 +03:00
v102.go Fix bug on pull requests when transfer head repository (#8564) 2019-10-18 19:13:31 +08:00
v103.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
v104.go Fix extra columns from label table (#8633) 2019-10-23 14:48:32 +03:00
v105.go Add team option to grant rights for all organization repositories (#8688) 2019-11-06 11:37:14 +02:00
v106.go Auto-subscribe user to repository when they commit/tag to it (#7657) 2019-11-10 09:22:19 +00:00
v107.go Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
v108.go Improve notification (#8835) 2019-11-12 16:33:34 +08:00
v109.go Team permission to create repository in organization (#8312) 2019-11-20 19:27:49 +08:00
v110.go Change review content column to type text in db (#9229) 2019-12-02 13:32:40 -05:00
v111.go Issue with Migration rule v111 (#9449) 2019-12-21 11:12:39 +01:00
v112.go fix wrong migration (#9381) 2019-12-17 14:58:30 +08:00
v113.go Change target branch for pull request (#6488) 2019-12-16 14:20:25 +08:00
v114.go Add migration to sanitize repository original_url (#9423) 2019-12-19 17:49:48 +08:00
v115.go Ignore empty avatars in v115.go (#9520) 2019-12-28 00:57:37 +02:00
v116.go [API] Extend times API (#9200) 2019-12-27 20:30:58 +00:00
v117.go Add branch protection option to block merge on requested changes. (#9592) 2020-01-03 19:47:09 +02:00