14 lines
852 B
MySQL
14 lines
852 B
MySQL
|
ALTER TABLE IF EXISTS `vn2008`.`Vehiculos_consumo` RENAME `vn`.`vehicleConsumption`;
|
||
|
|
||
|
ALTER TABLE IF EXISTS `vn`.`vehicleConsumption`
|
||
|
CHANGE COLUMN IF EXISTS `Vehiculos_consumo_id` `id` int(11) NOT NULL AUTO_INCREMENT,
|
||
|
CHANGE COLUMN IF EXISTS `Id_Vehiculo` `vehicleFk` int(10) unsigned NOT NULL,
|
||
|
CHANGE COLUMN IF EXISTS `fecha` `dated` date NOT NULL,
|
||
|
CHANGE COLUMN IF EXISTS `litros` `liters` double unsigned NOT NULL,
|
||
|
CHANGE COLUMN IF EXISTS `precio` `price` double unsigned NOT NULL,
|
||
|
CHANGE COLUMN IF EXISTS `peajes` `tolls` double DEFAULT NULL,
|
||
|
CHANGE COLUMN IF EXISTS `descuento` `discount` double DEFAULT NULL,
|
||
|
CHANGE COLUMN IF EXISTS `odbc_date` `created` timestamp NULL DEFAULT current_timestamp(),
|
||
|
CHANGE COLUMN IF EXISTS `otros` `others` double DEFAULT NULL,
|
||
|
CHANGE COLUMN IF EXISTS `proveedoresFk` `supplierFk` int(10) unsigned DEFAULT NULL;
|