diff --git a/staging-diff.sql b/staging-diff.sql index 48cf31e..8346e54 100644 --- a/staging-diff.sql +++ b/staging-diff.sql @@ -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 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')); + +update logbook set distance_in_km=CAST(distance_in_km AS INTEGER);