Add of db update script
This commit is contained in:
parent
5859763a14
commit
2e4c815a10
|
@ -0,0 +1,11 @@
|
||||||
|
CREATE TABLE IF NOT EXISTS `service` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`date` date DEFAULT NULL,
|
||||||
|
`odometer` int(11) DEFAULT NULL,
|
||||||
|
`vehicle_id` int(11) DEFAULT NULL,
|
||||||
|
`costs` decimal(10,2) DEFAULT NULL,
|
||||||
|
`description` varchar(4096) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `vehicle_id` (`vehicle_id`),
|
||||||
|
CONSTRAINT `service_ibfk_1` FOREIGN KEY (`vehicle_id`) REFERENCES `vehicle` (`id`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1;
|
Loading…
Reference in New Issue