fixed SQL Error with MySQL 5.7.12

This commit is contained in:
Joachim Lusiardi 2016-07-17 10:03:56 +02:00
parent 2f737c1715
commit 112ed38dbd
1 changed files with 1 additions and 1 deletions

View File

@ -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`);