diff --git a/doc/dev/documentation.org b/doc/dev/documentation.org index 2e48cc0ec4c7d26749946eaf447cd4ed8a4b7a50..58a14a52db711b2af9b01968722a743a70818fe3 100644 --- a/doc/dev/documentation.org +++ b/doc/dev/documentation.org @@ -456,15 +456,18 @@ of Bar (Listing [[sql-bar]] and [[sql-foo]]). bar._sql_save(execute, data=data) #+end_src -[fn:sqlite] The SQLite web site: https://www.sqlite.org/index.html -(last access 2023-09-20) - +Let see the results database scheme for Pamhyr2 at version v0.0.7 in +Figure [[sql_schema]]. #+NAME: sql_schema -#+ATTR_LATEX: :width 13cm +#+ATTR_LATEX: :width 16cm #+CAPTION: SQLite database scheme at Pamhyr2 version v0.0.7 (generate with [[https://gitlab.com/Screwtapello/sqlite-schema-diagram]]) [[./images/schema_v0.0.7.png]] + +[fn:sqlite] The SQLite web site: https://www.sqlite.org/index.html +(last access 2023-09-20) + *** List class A abstract class PamhyrModelList is available and provide some of diff --git a/doc/dev/images/schema_v0.0.7.png b/doc/dev/images/schema_v0.0.7.png index c6567d534a903596f4dfa89788a0f77741d2d4df..a09da69f67cde4569c3bcf10e0db4313594c61ef 100644 Binary files a/doc/dev/images/schema_v0.0.7.png and b/doc/dev/images/schema_v0.0.7.png differ diff --git a/src/Model/Geometry/PointXYZ.py b/src/Model/Geometry/PointXYZ.py index 2e806687cbc5bb9f5bfeac1031e06cb02c93ac04..0db9ff3de26f7f5e7e83a662504257ecb4bd023c 100644 --- a/src/Model/Geometry/PointXYZ.py +++ b/src/Model/Geometry/PointXYZ.py @@ -47,7 +47,7 @@ class PointXYZ(Point, SQLSubModel): z INTEGER NOT NULL, profile INTEGER NOT NULL, sl INTEGER, - FOREIGN KEY(profile) REFERENCES profileXYZ(id), + FOREIGN KEY(profile) REFERENCES geometry_profileXYZ(id), FOREIGN KEY(sl) REFERENCES sedimentary_layer(id) ) """)