gitea/routers
zeripath 718e0db12e
Run Migrate in Install rather than just SyncTables (#17475) (#17486)
Backport #17475

The underlying problem in #17328 appears to be that users are re-running the install
page during upgrades. The function that tests and creates the db did not intend for
this and thus instead the migration scripts being run - a simple sync tables occurs.

This then causes a weird partially migrated DB which causes, in this release cycle,
the duplicate column in task table error. It is likely the cause of some weird
partial migration errors in other cycles too.

This PR simply ensures that the migration scripts are also run at this point too.

Fix #17328

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-10-30 10:28:11 +01:00
..
api/v1 Ensure that restricted users can access repos for which they are members (#17460) (#17464) 2021-10-28 11:33:18 +08:00
common Read expected buffer size (#17409) (#17430) 2021-10-25 17:46:56 +01:00
install Run Migrate in Install rather than just SyncTables (#17475) (#17486) 2021-10-30 10:28:11 +01:00
private Prevent panic in serv.go with Deploy Keys (#17434) (#17435) 2021-10-26 01:24:29 +02:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web Fix CSV render error (#17406) (#17431) 2021-10-25 18:31:15 +01:00
init.go Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00