0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-29 13:14:25 +01:00
gitea/routers/install
zeripath e6e3b212b3
Run Migrate in Install rather than just SyncTables (#17475)
* Run Migrate in Install rather than just SyncTables

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-29 09:23:10 +01:00
..
install.go Run Migrate in Install rather than just SyncTables (#17475) 2021-10-29 09:23:10 +01:00
routes.go Use a variable but a function for IsProd because of a slight performance increment (#17368) 2021-10-20 16:37:19 +02:00
routes_test.go just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
setting.go Always emit the configuration path (#17036) 2021-09-13 21:24:57 -04:00