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' ...@@ -27,6 +27,7 @@ CREDENTIALS_MYSQL_PASSWORD: 'SET-ME-TO-A-UNIQUE-LONG-RANDOM-STRING'
CREDENTIALS_DATABASE_PORT: '3306' CREDENTIALS_DATABASE_PORT: '3306'
CREDENTIALS_MYSQL_OPTIONS: CREDENTIALS_MYSQL_OPTIONS:
connect_timeout: 10 connect_timeout: 10
init_command: "SET sql_mode='STRICT_TRANS_TABLES'"
CREDENTIALS_DATABASES: CREDENTIALS_DATABASES:
# rw user # rw user
......
...@@ -29,6 +29,7 @@ ECOMMERCE_DATABASE_HOST: "localhost" ...@@ -29,6 +29,7 @@ ECOMMERCE_DATABASE_HOST: "localhost"
ECOMMERCE_DATABASE_PORT: 3306 ECOMMERCE_DATABASE_PORT: 3306
ECOMMERCE_MYSQL_OPTIONS: ECOMMERCE_MYSQL_OPTIONS:
connect_timeout: 10 connect_timeout: 10
init_command: "SET sql_mode='STRICT_TRANS_TABLES'"
ECOMMERCE_DATABASES: ECOMMERCE_DATABASES:
# rw user # rw user
......
...@@ -116,6 +116,7 @@ edx_django_service_db_user: 'REPLACE-ME' ...@@ -116,6 +116,7 @@ edx_django_service_db_user: 'REPLACE-ME'
edx_django_service_db_password: 'password' edx_django_service_db_password: 'password'
edx_django_service_db_options: edx_django_service_db_options:
connect_timeout: 10 connect_timeout: 10
init_command: "SET sql_mode='STRICT_TRANS_TABLES'"
edx_django_service_databases: edx_django_service_databases:
default: 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