Skip to content

Commit

Permalink
Disable ONLY_FULL_GROUP_BY constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Oct 21, 2016
1 parent 0eea8f0 commit 2b9ade7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@
'prefix' => '',
'strict' => true,
'engine' => null,
'modes' => [
// For now, disable the full_group_by restriction.
// There are just too many queries not optimized
// for this, for now.
//'ONLY_FULL_GROUP_BY',

// All of the other modes though, they should stay!
'STRICT_TRANS_TABLES',
'NO_ZERO_IN_DATE',
'NO_ZERO_DATE',
'ERROR_FOR_DIVISION_BY_ZERO',
'NO_AUTO_CREATE_USER',
'NO_ENGINE_SUBSTITUTION'
],
],

'pgsql' => [
Expand Down

0 comments on commit 2b9ade7

Please sign in to comment.