mirror of
https://github.com/go-gitea/gitea
synced 2025-07-26 04:08:35 +00:00
Add support for database schema in PostgreSQL (#8819)
* Add support for database schema * Require setting search_path for the db user * Add schema setting to admin/config.tmpl * Use a schema different from default for psql tests * Update postgres scripts to use custom schema * Update to xorm/core 0.7.3 and xorm/xorm c37aff9b3a * Fix migration test Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
committed by
Antoine GIRARD
parent
6d6f1d568e
commit
ad1b6d439f
5
templates/install.tmpl
vendored
5
templates/install.tmpl
vendored
@@ -62,6 +62,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inline field {{if .Err_DbSetting}}error{{end}}">
|
||||
<label for="db_schema">{{.i18n.Tr "install.db_schema"}}</label>
|
||||
<input id="db_schema" name="db_schema" value="{{.db_schema}}">
|
||||
<span class="help">{{.i18n.Tr "install.db_schema_helper"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="mysql_settings" class="{{if not (eq .CurDbOption "MySQL")}}hide{{end}}">
|
||||
|
Reference in New Issue
Block a user