efa-data #66

Merged
philipp merged 2 commits from efa-data into staging 2023-11-20 16:02:43 +01:00
Showing only changes of commit 57bcad0b23 - Show all commits

View File

@ -6937,3 +6937,5 @@ INSERT INTO rower (logbook_id, rower_id) VALUES ((SELECT seq FROM sqlite_sequenc
INSERT INTO rower (logbook_id, rower_id) VALUES ((SELECT seq FROM sqlite_sequence WHERE name='logbook'), (SELECT id FROM user WHERE name='Kilian Menzl')); INSERT INTO rower (logbook_id, rower_id) VALUES ((SELECT seq FROM sqlite_sequence WHERE name='logbook'), (SELECT id FROM user WHERE name='Kilian Menzl'));
INSERT INTO logbook (boat_id, shipmaster, shipmaster_only_steering, departure, arrival,destination, distance_in_km, comments) VALUES ((SELECT id FROM boat WHERE name='Fredi'),(SELECT id FROM user WHERE name='Niklas Sageder'),false,'2019-11-25 12:40:00','2019-11-25 14:20:00','Reg.strecke',44,NULL); INSERT INTO logbook (boat_id, shipmaster, shipmaster_only_steering, departure, arrival,destination, distance_in_km, comments) VALUES ((SELECT id FROM boat WHERE name='Fredi'),(SELECT id FROM user WHERE name='Niklas Sageder'),false,'2019-11-25 12:40:00','2019-11-25 14:20:00','Reg.strecke',44,NULL);
INSERT INTO rower (logbook_id, rower_id) VALUES ((SELECT seq FROM sqlite_sequence WHERE name='logbook'), (SELECT id FROM user WHERE name='Niklas Sageder')); INSERT INTO rower (logbook_id, rower_id) VALUES ((SELECT seq FROM sqlite_sequence WHERE name='logbook'), (SELECT id FROM user WHERE name='Niklas Sageder'));
update logbook set distance_in_km=CAST(distance_in_km AS INTEGER);