1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-19 11:58:06 +08:00
gitea/modules/doctor
zeripath 070c57867d
Fix postgres ID sequences broken by recreate-table ()
* Fix postgres ID sequences broken by recreate-table

Unfortunately there is a subtle problem with recreatetable on postgres which
leads to the sequences not being renamed and not being left at 0.

Fix 

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

* let us try information_schema instead

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

* try again

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
2021-03-18 02:06:40 -04:00
..
authorizedkeys.go Refactor doctor () 2020-12-02 06:56:04 +02:00
dbconsistency.go Fix postgres ID sequences broken by recreate-table () 2021-03-18 02:06:40 -04:00
dbversion.go Refactor doctor () 2020-12-02 06:56:04 +02:00
doctor.go Refactor doctor () 2020-12-02 06:56:04 +02:00
mergebase.go Refactor doctor () 2020-12-02 06:56:04 +02:00
misc.go Refactor doctor () 2020-12-02 06:56:04 +02:00
paths.go Refactor doctor () 2020-12-02 06:56:04 +02:00
usertype.go Add Doctor FixWrongUserType () 2021-01-29 19:30:43 +01:00