From 7a1b97db848857151e97db5ffcf88ed42103a56e Mon Sep 17 00:00:00 2001
From: Ryan Senior <ryan@metabase.com>
Date: Fri, 13 Jul 2018 16:24:15 -0500
Subject: [PATCH] Add quoting to fix issues with newer MySQL

MySQL 8+ includes many new reserved words including words that collide
with some of our column names. This commit adds quoting to migrations
that include column names that are reserved words.
---
 resources/migrations/000_migrations.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/resources/migrations/000_migrations.yaml b/resources/migrations/000_migrations.yaml
index 518b0708b69..903e5b2310e 100644
--- a/resources/migrations/000_migrations.yaml
+++ b/resources/migrations/000_migrations.yaml
@@ -2,6 +2,7 @@ databaseChangeLog:
   - changeSet:
       id: '1'
       author: agilliland
+      objectQuotingStrategy: QUOTE_ALL_OBJECTS
       changes:
       - createTable:
           columns:
@@ -1698,6 +1699,7 @@ databaseChangeLog:
   - changeSet:
       id: 15
       author: agilliland
+      objectQuotingStrategy: QUOTE_ALL_OBJECTS
       changes:
         - addColumn:
             tableName: revision
@@ -2060,6 +2062,7 @@ databaseChangeLog:
   - changeSet:
       id: 23
       author: agilliland
+      objectQuotingStrategy: QUOTE_ALL_OBJECTS
       changes:
         - modifyDataType:
             tableName: metabase_table
@@ -3186,6 +3189,7 @@ databaseChangeLog:
   - changeSet:
       id: 46
       author: camsaul
+      objectQuotingStrategy: QUOTE_ALL_OBJECTS
       changes:
         - addNotNullConstraint:
             tableName: report_dashboardcard
-- 
GitLab