add: ein paar mehr Beispieldaten

This commit is contained in:
Johannes Kantz 2023-02-05 08:44:19 +01:00
parent 1dadd23ffb
commit 57b5301208

View File

@ -393,10 +393,34 @@ public class Database {
VALUES('2','1','1','8');"""); VALUES('2','1','1','8');""");
sqls.add(""" sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('3','2','2','5');"""); VALUES('3','2','1','4');""");
sqls.add(""" sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid) INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('4','2','2','7');"""); VALUES('4','2','1','8');""");
sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('5','1','2','5');""");
sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('6','1','2','7');""");
sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('7','2','2','5');""");
sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('8','2','2','7');""");
sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('9','1','3','4');""");
sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('10','1','3','8');""");
sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('11','2','3','4');""");
sqls.add("""
INSERT OR IGNORE INTO food_selection ('id',childid,food_planid,foodid)
VALUES('12','2','3','6');""");
try (Connection conn = connect(); Statement stmt = conn.createStatement()) { try (Connection conn = connect(); Statement stmt = conn.createStatement()) {
for (String sql : sqls) { for (String sql : sqls) {