Added users to games in sample data
This commit is contained in:
@@ -63,13 +63,17 @@ BEGIN
|
||||
DECLARE lastid VARCHAR(36) DEFAULT UUID();
|
||||
INSERT INTO `polygonArea` (gameID, polygonID, userID, area) VALUES
|
||||
(gID, lastid, usID, a);
|
||||
SELECT * FROM `polygonArea` WHERE polygonID = lastid;
|
||||
SELECT * FROM `polygonArea`
|
||||
JOIN userJoinedGames ON
|
||||
userJoinedGames.userID = polygonArea.userID AND userJoinedGames.gameID = polygonArea.gameID
|
||||
WHERE polygonID = lastid;
|
||||
END //
|
||||
DELIMITER ;
|
||||
|
||||
INSERT INTO `gameInstances` (gameID) VALUES ("samdum");
|
||||
INSERT INTO `users` (userID, nickname) VALUES ("samded", "Lesmaux");
|
||||
INSERT INTO `users` (userID, nickname) VALUES ("fanded", "Umbra Sheep");
|
||||
INSERT INTO `userJoinedGames` (userID, gameID, colour) VALUES ("samded", "samdum", "0000FF");
|
||||
INSERT INTO `polygonArea` (gameID, polygonID, userID, area) VALUES
|
||||
("samdum", "someuniqueid", "samded", 100000.1);
|
||||
INSERT INTO `polygonPoints` (polygonID, lat, lng) VALUES
|
||||
|
||||
Reference in New Issue
Block a user