Skip to content

Commit

Permalink
fix(sql): remove license key foreign key constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason authored Dec 19, 2024
1 parent 2f34cdb commit c6f4ca4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vehicles.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit c6f4ca4

Please sign in to comment.