From 30ff89ba47c67e5a73a54e38c316d574f7261d61 Mon Sep 17 00:00:00 2001 From: Asep Bagja Priandana Date: Tue, 18 Jul 2017 11:54:55 +0700 Subject: [PATCH 1/2] Fixing ONLY_FULL_GROUP_BY. Issue #17. I'm adding the set sql_mode to the `config.yml`, so user don't need to set it manually from their SQL console. --- app/config/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/config/config.yml b/app/config/config.yml index f0ec4cb..f9471fb 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -55,6 +55,8 @@ doctrine: # 2. Uncomment database_path in parameters.yml.dist # 3. Uncomment next line: #path: '%database_path%' + options: + 1002: "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))" orm: auto_generate_proxy_classes: '%kernel.debug%' From 9a6b8c1fe07b68e12e631020aa968aa3986814bf Mon Sep 17 00:00:00 2001 From: Asep Bagja Priandana Date: Tue, 18 Jul 2017 13:15:29 +0700 Subject: [PATCH 2/2] Removing the installation notes from documentation. Based on issue #17, I'm updating the installation notes. Now, user don't need to do anything regarding MySQL 5.7. --- README.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/README.md b/README.md index 25ffc55..597fc0b 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,6 @@ You can also run Tania in production mode (on your server) by referring to this Done! You can start to use Tania. - -## Installation notes - -If you use MySQL 5.7, you should disable `ONLY_FULL_GROUP_BY`. You can refer to this [StackOverflow discussion](https://stackoverflow.com/questions/23921117/disable-only-full-group-by). - ## Questions and issues You can use [the issue tracker of Tania](https://github.com/tanibox/tania/issues) for bug reporting, feature request, and general feedback.