mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 04:27:16 +02:00
Fixing further typos galore
This commit is contained in:
parent
ff8844a1bd
commit
ad77c07211
2 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ before_install:
|
|||
- psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;"
|
||||
- mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8;"
|
||||
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||
- mysql -u root -e "GRANT ALL PRIVILEGES ON evennia.* TO 'evennia'@'localost' IDENTIFIED BY 'password';"
|
||||
- mysql -u root -e "GRANT ALL ON evennia.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
|
||||
|
||||
install:
|
||||
- pip install psycopg2-binary
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ SERVERNAME = "testing_mygame"
|
|||
# Testing database types
|
||||
|
||||
if os.environ.get("TESTING_DB") == "postgresql":
|
||||
print("Loading PostGreSQL database backend.")
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
|
|
@ -49,6 +50,7 @@ if os.environ.get("TESTING_DB") == "postgresql":
|
|||
'PORT': '' # use default
|
||||
}}
|
||||
elif os.environ.get("TESTING_DB") == "mysql":
|
||||
print("Loading MySQL database backend.")
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
|
|
@ -60,6 +62,7 @@ elif os.environ.get("TESTING_DB") == "mysql":
|
|||
}
|
||||
}
|
||||
else: # default sqlite3, use default settings
|
||||
print("Loading SQlite3 database backend (default).")
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue