Remove sql_mode ONLY_FULL_GROUP_BY setting

When this is set there's the following error:

SELECT list is not in GROUP BY clause and contains nonaggregated column
 lp_view.view_count which is not functionally dependent on columns
 in GROUP BY clause; this is incompatible with
 sql_mode=only_full_group_by
pull/2650/head
Julio Montoya 7 years ago
parent 393315f526
commit c62a23f081
  1. 2
      config/packages/doctrine.yaml

@ -7,6 +7,8 @@ doctrine:
host: '%env(DATABASE_HOST)%'
driver: 'pdo_mysql'
charset: utf8mb4
options:
1002: "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))"
default_table_options:
charset: utf8mb4
collate: utf8mb4_unicode_ci

Loading…
Cancel
Save