You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/install
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>
3 years ago
..
install.go Run Migrate in Install rather than just SyncTables (#17475) (#17486) 3 years ago
routes.go Refactor routers directory (#15800) 4 years ago
routes_test.go just add some unit tests (#16291) 4 years ago
setting.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 4 years ago