Skip to content

Commit

Permalink
#201 #202 Update data-h2.sql, data-mysql.sql & persons.sql (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
conorheffron authored Sep 27, 2024
1 parent eb4a334 commit 57ff2d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/main/resources/db/data-h2.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
--h2
-- h2 initial data load INSERTS
INSERT INTO IRONOC_DB.PERSON (id, title, first_name, surname, age) VALUES (1001, 'Mr', 'Conor', 'Heffron', 45);
INSERT INTO IRONOC_DB.PERSON (id, title, first_name, surname, age) VALUES (1002, 'Mrs.', 'Nora', 'Jones', 29);
INSERT INTO IRONOC_DB.PERSON (id, title, first_name, surname, age) VALUES (1003, 'Dr', 'Joe', 'Bloggs', 43);
--SELECT * FROM PERSON where title LIKE 'M%'; from H2 console
8 changes: 4 additions & 4 deletions src/main/resources/db/data-mysql.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- ** Test Inserts for DEBUG ONLY **
INSERT INTO `ironoc_db`.`person` (`id`, `title`, `first_name`, `surname`, `age`) VALUES (1001, "Mr", "Conor", "Heffron", 43);
INSERT INTO `ironoc_db`.`person` (`id`, `title`, `first_name`, `surname`, `age`) VALUES (1002, "Mr", "Joe", "Bloggs", 44);
INSERT INTO `ironoc_db`.`person` (`id`, `title`, `first_name`, `surname`, `age`) VALUES (1003, "Dr", "John", "Jones", 29);
-- ** MySQL Test INSERTS for DEBUG & TESTING PURPOSES ONLY **
INSERT INTO IRONOC_DB.PERSON (id, title, first_name, surname, age) VALUES (1001, 'Mr', 'Conor', 'Heffron', 45);
INSERT INTO IRONOC_DB.PERSON (id, title, first_name, surname, age) VALUES (1002, 'Mrs.', 'Nora', 'Jones', 29);
INSERT INTO IRONOC_DB.PERSON (id, title, first_name, surname, age) VALUES (1003, 'Dr', 'Joe', 'Bloggs', 43);
5 changes: 3 additions & 2 deletions src/main/resources/db/persons.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ CREATE TABLE IRONOC_DB.PERSON (
-- Enter passw as ENV VAR for docker image or alter here later via SQL client
-- ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'mypassword';
-- View Data
--SELECT `person`.`age`,
-- SELECT `person`.`age`,
-- `person`.`id`,
-- `person`.`title`,
-- `person`.`first_name`,
-- `person`.`surname`
--FROM `ironoc_db`.`person`;
-- FROM `ironoc_db`.`person`;
-- SELECT * FROM IRONOC_DB.PERSON where title LIKE 'M%'; from H2 console

0 comments on commit 57ff2d2

Please sign in to comment.