Skip to content

Commit 9a69ce2

Browse files
committed
TH-0 Change DB postgresql -> mysql
1 parent 72df236 commit 9a69ce2

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get install -qq -y --no-install-recommends apt-utils \
1919
nginx \
2020
supervisor \
2121
redis-server \
22+
mysql-server \
2223
python3 \
2324
python3-pip \
2425
python3-dev \

poetry.lock

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ celery = {extras = ["redis"], version = "^5.1.2"}
2828
psycopg2-binary = "^2.9.1"
2929
freezegun = "^1.1.0"
3030
types-freezegun = "^1.1.2"
31+
mysqlclient = "^2.1.0"
3132

3233
[tool.poetry.dev-dependencies]
3334
pre-commit = "^2.11.1"

v2/src/config/settings/production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
DATABASES = {
66
"default": {
7-
"ENGINE": "django.db.backends.postgresql",
7+
"ENGINE": "django.db.backends.mysql",
88
"NAME": os.environ.get("RDS_DB_NAME", ""), # noqa: F405
99
"USER": os.environ.get("RDS_USERNAME", ""), # noqa: F405
1010
"PASSWORD": os.environ.get("RDS_PASSWORD", ""), # noqa: F405

0 commit comments

Comments
 (0)