fixed SQL Error with MySQL 5.7.12
This commit is contained in:
parent
2f737c1715
commit
112ed38dbd
@ -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`);
|
||||
|
Loading…
Reference in New Issue
Block a user