Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 10:46:10 +01:00
forgejo/models/db
wxiaoguang 042cac5fed
Improve install code to avoid low-level mistakes. (#17779)
* Improve install code to avoid low-level mistakes.

If a user tries to do a re-install in a Gitea database, they gets a warning and double check.
When Gitea runs, it never create empty app.ini automatically.

Also some small (related) refactoring:

* Refactor db.InitEngine related logic make it more clean (especially for the install code)
* Move some i18n strings out from setting.go to make the setting.go can be easily maintained.
* Show errors in CLI code if an incorrect app.ini is used.
* APP_DATA_PATH is created when installing, and checked when starting (no empty directory is created any more).
2021-12-01 15:50:01 +08:00
..
install Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
paginator Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
context.go Remove NewSession method from db.Engine interface (#17577) 2021-11-21 23:41:00 +08:00
convert.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
engine.go Improve install code to avoid low-level mistakes. (#17779) 2021-12-01 15:50:01 +08:00
error.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
index.go Fix commit status index problem (#17061) 2021-09-23 18:50:06 +08:00
list_options.go Remove NewSession method from db.Engine interface (#17577) 2021-11-21 23:41:00 +08:00
log.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
name.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
search.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
sequence.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00
sql_postgres_with_schema.go Move db related basic functions to models/db (#17075) 2021-09-19 19:49:59 +08:00