loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: make installing Forgejo work again (#7452)

- The default engine is no longer guaranteed to be of the type `*xorm.Engine`, so instead return the interface `db.Engine`.
- Regression of forgejo/forgejo#7212

# Testing

1. Install a Forgejo instance via the setup screen.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7452
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>

authored by

Gusted
Gusted
and committed by
Earl Warren
99fc04b7 afea42d5

+2 -4
+2 -4
models/db/install/db.go
··· 6 6 import ( 7 7 "forgejo.org/models/db" 8 8 "forgejo.org/modules/setting" 9 - 10 - "xorm.io/xorm" 11 9 ) 12 10 13 - func getXORMEngine() *xorm.Engine { 14 - return db.DefaultContext.(*db.Context).Engine().(*xorm.Engine) 11 + func getXORMEngine() db.Engine { 12 + return db.DefaultContext.(*db.Context).Engine() 15 13 } 16 14 17 15 // CheckDatabaseConnection checks the database connection