Fix insert statement in database upgrade file 33.

This makes it possible to run the script on an already upgraded
schema.
This commit is contained in:
D. Berge
2024-05-06 11:10:46 +02:00
parent 73fb7a5053
commit fbb4e1efaf

View File

@@ -92,7 +92,8 @@ BEGIN
sailline, psp.line, 'V' sailline_class, psp.class line_class, pl.incr, pl.ntba, pl.remarks, pl.meta
FROM preplot_saillines_points psp
INNER JOIN preplot_lines pl ON psp.sailline = pl.line AND pl.class = 'V'
ORDER BY sailline;
ORDER BY sailline
ON CONFLICT DO NOTHING;
-- We need to recreate the preplot_saillines_points view