From da391f9b80642b06c0a70684899c9ad429f6cf7c Mon Sep 17 00:00:00 2001 From: tschumpr Date: Wed, 31 Jul 2024 08:41:47 +0200 Subject: [PATCH] Add missing sequence --- src/api/BdmsContextExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/BdmsContextExtensions.cs b/src/api/BdmsContextExtensions.cs index 2d0206580..b2fe0cc82 100644 --- a/src/api/BdmsContextExtensions.cs +++ b/src/api/BdmsContextExtensions.cs @@ -995,6 +995,8 @@ SectionElement SeededSectionElement(int sectionId, int order) => context.Database.ExecuteSqlInterpolated($"SELECT setval(pg_get_serial_sequence('bdms.section', 'id'), {section_ids - 1})"); context.Database.ExecuteSqlInterpolated($"SELECT setval(pg_get_serial_sequence('bdms.section_element', 'id'), {sectionElement_ids - 1})"); context.Database.ExecuteSqlInterpolated($"SELECT setval(pg_get_serial_sequence('bdms.borehole_geometry', 'id'), {boreholeGeometry_ids - 1})"); + context.Database.ExecuteSqlInterpolated($"SELECT setval(pg_get_serial_sequence('bdms.lithological_description', 'id_ldp'), {lithologicalDescription_ids - 1})"); + context.Database.ExecuteSqlInterpolated($"SELECT setval(pg_get_serial_sequence('bdms.facies_description', 'id_fac'), {faciesDescription_ids - 1})"); } } #pragma warning restore CA1505