From c6f4ca4066acee99934f315b0bfa99e76b97d59b Mon Sep 17 00:00:00 2001 From: Manason Date: Wed, 18 Dec 2024 18:50:38 -0800 Subject: [PATCH] fix(sql): remove license key foreign key constraint --- vehicles.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vehicles.sql b/vehicles.sql index 779b301..d6a6d7a 100644 --- a/vehicles.sql +++ b/vehicles.sql @@ -17,6 +17,5 @@ CREATE TABLE IF NOT EXISTS `player_vehicles` ( `status` text DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `plate` (`plate`), - FOREIGN KEY (`citizenid`) REFERENCES `players` (`citizenid`) ON DELETE CASCADE ON UPDATE CASCADE, - FOREIGN KEY (`license`) REFERENCES `players` (`license`) ON DELETE CASCADE ON UPDATE CASCADE + FOREIGN KEY (`citizenid`) REFERENCES `players` (`citizenid`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;