From 112ed38dbdb95c24186a2c7871ed509fd2e60c93 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 17 Jul 2016 10:03:56 +0200 Subject: [PATCH] fixed SQL Error with MySQL 5.7.12 --- database_upgrades/upgrade_cathrine_to_danielle.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database_upgrades/upgrade_cathrine_to_danielle.sql b/database_upgrades/upgrade_cathrine_to_danielle.sql index c221633..840cf61 100644 --- a/database_upgrades/upgrade_cathrine_to_danielle.sql +++ b/database_upgrades/upgrade_cathrine_to_danielle.sql @@ -19,7 +19,7 @@ CREATE TABLE IF NOT EXISTS `vehicles_consumables` ( ALTER TABLE `pitstop` ADD COLUMN `costs` decimal(5,2) DEFAULT NULL; -ALTER TABLE `pitstop` CHANGE `litres` `amount`; +ALTER TABLE `pitstop` CHANGE `litres` `amount` decimal(5,2) DEFAULT NULL; ALTER TABLE `pitstop` ADD COLUMN `consumable_id` int(11); ALTER TABLE `pitstop` ADD FOREIGN KEY (`consumable_id`) REFERENCES `consumable` (`id`);