Skip to content
Snippets Groups Projects
Commit 5b298444 authored by Rhys Evans's avatar Rhys Evans
Browse files

created locations coordinates table

parent a6355195
No related branches found
No related tags found
1 merge request!30Resolve "As a user I would like to see a map of the landmarks, so that I can figure out where to go"
......@@ -52,6 +52,6 @@ insert into badgeprogress (userID, badgeID, progress) value ('1', '2', '70');
insert into badgeprogress (userID, badgeID, progress) value ('2', '2', '70');
delete from stickerprogress;
insert into stickerprogress (userID, stickerID, hasSticker) value ('1', '1', true);
insert into stickerprogress (userID, stickerID, hasSticker) value ('1', '3', true);
insert into stickerprogress (userID, stickerID, hasSticker) value ('2', '2', true);
\ No newline at end of file
# insert into stickerprogress (userID, stickerID, hasSticker) value ('1', '1', true);
# insert into stickerprogress (userID, stickerID, hasSticker) value ('1', '3', true);
# insert into stickerprogress (userID, stickerID, hasSticker) value ('2', '2', true);
\ No newline at end of file
......@@ -59,4 +59,21 @@ create table if not exists stickerProgress
userID bigint,
stickerID bigint,
hasSticker boolean /*Has sticker or not*/
) engine=InnoDB;
\ No newline at end of file
) engine=InnoDB;
drop table if exists locations;
drop table if exists locationsCoordinates;
create table if not exists locationsCoordinates
(locationCoordID bigint auto_increment primary key,
locationID bigint,
locationCoordName varchar(128),
locationCoordsLong double,
locationCoordsLat double,
Foreign Key (locationID) REFERENCES locations(locationID)
)engine=InnoDB;
\ No newline at end of file
......@@ -27,9 +27,13 @@ class SmartTownsApplicationTests {
void contextLoads() {
}
private static Location location;
private static locationRepositoryJDBC locationRepo;
private static JdbcTemplate jdbc;
// private static Location location;
// private static locationRepositoryJDBC locationRepo;
// private static JdbcTemplate jdbc;
// @BeforeAll
// public static void before() {
// location = new Location();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment