From 44c42f9bfe842322bb32916955d7818970b6823d Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 4 Aug 2023 17:20:04 -0700 Subject: [PATCH] Set SQL mode, fix bug in `-fits:blue-acara` search Without this, searches for negative of `fits` or `species` would crash, bc somewhere Rails set the default SQL mode to be stricter than before. This just sets it back! --- config/database.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/database.yml b/config/database.yml index a56b950f..ec71458c 100644 --- a/config/database.yml +++ b/config/database.yml @@ -4,6 +4,10 @@ development: username: openneo_impress password: openneo_impress pool: 5 + variables: + sql_mode: TRADITIONAL production: url: <%= ENV['DATABASE_URL_PRIMARY'] %> + variables: + sql_mode: TRADITIONAL