summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-12 15:31:36 -0400
committerUnknwon <u@gogs.io>2015-09-12 15:31:36 -0400
commitaff773f1b968b601a02d48cca071c7e96a22ca52 (patch)
treef31223df35c33b2889d9672ee7d2566a352b11ab /conf
parent10de16beb0065a5e96ef58073841da35c017f5dd (diff)
downloadgitea-aff773f1b968b601a02d48cca071c7e96a22ca52.tar.gz
gitea-aff773f1b968b601a02d48cca071c7e96a22ca52.zip
add tidb support
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini2
-rw-r--r--conf/locale/locale_en-US.ini7
2 files changed, 6 insertions, 3 deletions
diff --git a/conf/app.ini b/conf/app.ini
index b826080d43..9d9bc54943 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -65,7 +65,7 @@ USER = root
PASSWD =
; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable
-; For "sqlite3" only
+; For "sqlite3" and "tidb"
PATH = data/gogs.db
[admin]
diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini
index b76d878b34..5f6283243a 100644
--- a/conf/locale/locale_en-US.ini
+++ b/conf/locale/locale_en-US.ini
@@ -65,7 +65,10 @@ db_helper = Please use INNODB engine with utf8_general_ci charset for MySQL.
ssl_mode = SSL Mode
path = Path
sqlite_helper = The file path of SQLite3 database.
-err_empty_sqlite_path = SQLite3 database path cannot be empty.
+err_empty_db_path = SQLite3 or TiDB database path cannot be empty.
+err_invalid_tidb_name = TiDB database name does not allow characters "." and "-".
+no_admin_and_disable_registration = You cannot disable registration without creating an admin account.
+err_empty_admin_password = Admin password cannot be empty.
general_title = Application General Settings
app_name = Application Name
@@ -868,7 +871,7 @@ config.db_user = User
config.db_ssl_mode = SSL Mode
config.db_ssl_mode_helper = (for "postgres" only)
config.db_path = Path
-config.db_path_helper = (for "sqlite3" only)
+config.db_path_helper = (for "sqlite3" and "tidb")
config.service_config = Service Configuration
config.register_email_confirm = Require E-mail Confirmation
config.disable_register = Disable Registration