Skip to content

Commit

Permalink
use TinyInt
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 authored Mar 3, 2024
1 parent 52ab6cc commit 71ada2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ CREATE TABLE IF NOT EXISTS `vehicle_financing` (
`vehicleId` int(11) NOT NULL,
`balance` int(11) DEFAULT NULL,
`paymentamount` int(11) DEFAULT NULL,
`paymentsleft` int(11) DEFAULT NULL,
`paymentsleft` tinyint(4) DEFAULT NULL,
`financetime` int(11) DEFAULT NULL,
PRIMARY KEY (`vehicleId`),
FOREIGN KEY `vehicleId` (`vehicleId`) REFERENCES `player_vehicles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY `vehicleId` (`vehicleId`) REFERENCES `player_vehicles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

INSERT INTO vehicle_financing (vehicleId, balance, paymentamount, paymentsleft, financetime)
Expand All @@ -17,4 +17,4 @@ ALTER TABLE player_vehicles
DROP COLUMN balance,
DROP COLUMN paymentamount,
DROP COLUMN paymentsleft,
DROP COLUMN financetime;
DROP COLUMN financetime;

0 comments on commit 71ada2b

Please sign in to comment.