summaryrefslogtreecommitdiff
path: root/import
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-06-17 23:04:47 +0200
committeremkael <emkael@tlen.pl>2018-06-17 23:04:47 +0200
commitc1f9b43b2f1c6d45fed3557633af4e86548013eb (patch)
treebceedc3adeaa72c7b1d0a1aaaeb3ce076b1f6e81 /import
parent6725aa67abb732dd831d98d6320d0e1a757089f7 (diff)
MySQL 5.7 compatibility fixes
Diffstat (limited to 'import')
-rw-r--r--import/01b_indexes.sql4
1 files changed, 3 insertions, 1 deletions
diff --git a/import/01b_indexes.sql b/import/01b_indexes.sql
index d3ca687..67808ee 100644
--- a/import/01b_indexes.sql
+++ b/import/01b_indexes.sql
@@ -37,10 +37,12 @@ ALTER TABLE pitStops
ALTER TABLE qualifying
ADD INDEX position (position);
+-- Default value compatibility
+ALTER TABLE `races` CHANGE `date` `date` DATE NULL DEFAULT NULL;
-- Indexes for table races
ALTER TABLE races
ADD INDEX year (year),
- ADD INDEX date (date);
+ ADD INDEX `date` (`date`);
-- Indexes for table results
ALTER TABLE results