Skip to content

Commit

Permalink
TH-0 Change DB postgresql -> mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeHyoungKwon committed Nov 28, 2021
1 parent 72df236 commit 9a69ce2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN apt-get install -qq -y --no-install-recommends apt-utils \
nginx \
supervisor \
redis-server \
mysql-server \
python3 \
python3-pip \
python3-dev \
Expand Down
17 changes: 16 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ celery = {extras = ["redis"], version = "^5.1.2"}
psycopg2-binary = "^2.9.1"
freezegun = "^1.1.0"
types-freezegun = "^1.1.2"
mysqlclient = "^2.1.0"

[tool.poetry.dev-dependencies]
pre-commit = "^2.11.1"
Expand Down
2 changes: 1 addition & 1 deletion v2/src/config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"ENGINE": "django.db.backends.mysql",
"NAME": os.environ.get("RDS_DB_NAME", ""), # noqa: F405
"USER": os.environ.get("RDS_USERNAME", ""), # noqa: F405
"PASSWORD": os.environ.get("RDS_PASSWORD", ""), # noqa: F405
Expand Down

0 comments on commit 9a69ce2

Please sign in to comment.