Commit 81c87961 by Clinton Blackburn Committed by Clinton Blackburn

Setting sql_mode for IDAs to prevent data loss

This setting ensures truncation warnings are escalated as errors. See https://docs.djangoproject.com/en/1.10/ref/databases/#mysql-sql-mode for additional info.
parent 7302dd4e
......@@ -27,6 +27,7 @@ CREDENTIALS_MYSQL_PASSWORD: 'SET-ME-TO-A-UNIQUE-LONG-RANDOM-STRING'
CREDENTIALS_DATABASE_PORT: '3306'
CREDENTIALS_MYSQL_OPTIONS:
connect_timeout: 10
init_command: "SET sql_mode='STRICT_TRANS_TABLES'"
CREDENTIALS_DATABASES:
# rw user
......
......@@ -29,6 +29,7 @@ ECOMMERCE_DATABASE_HOST: "localhost"
ECOMMERCE_DATABASE_PORT: 3306
ECOMMERCE_MYSQL_OPTIONS:
connect_timeout: 10
init_command: "SET sql_mode='STRICT_TRANS_TABLES'"
ECOMMERCE_DATABASES:
# rw user
......
......@@ -116,6 +116,7 @@ edx_django_service_db_user: 'REPLACE-ME'
edx_django_service_db_password: 'password'
edx_django_service_db_options:
connect_timeout: 10
init_command: "SET sql_mode='STRICT_TRANS_TABLES'"
edx_django_service_databases:
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment