Geometry, doc: Fix pointXYZ foreign key.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-04-26 10:04:43 +02:00
1 parent aea7cdb823
commit d0acface41
3 files changed
+8 -5

No files matched your search

+7 -4
View File
@@ -456,15 +456,18 @@ of Bar (Listing [[sql-bar]] and [[sql-foo]]).
bar._sql_save(execute, data=data) bar._sql_save(execute, data=data)
#+end_src #+end_src
[fn:sqlite] The SQLite web site: https://www.sqlite.org/index.html Let see the results database scheme for Pamhyr2 at version v0.0.7 in
(last access 2023-09-20) Figure [[sql_schema]].
#+NAME: 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]]) #+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]] [[./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 *** List class
A abstract class PamhyrModelList is available and provide some of A abstract class PamhyrModelList is available and provide some of
Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 KiB

After

Width:  |  Height:  |  Size: 224 KiB

+1 -1
View File
@@ -47,7 +47,7 @@ class PointXYZ(Point, SQLSubModel):
z INTEGER NOT NULL, z INTEGER NOT NULL,
profile INTEGER NOT NULL, profile INTEGER NOT NULL,
sl INTEGER, sl INTEGER,
FOREIGN KEY(profile) REFERENCES profileXYZ(id), FOREIGN KEY(profile) REFERENCES geometry_profileXYZ(id),
FOREIGN KEY(sl) REFERENCES sedimentary_layer(id) FOREIGN KEY(sl) REFERENCES sedimentary_layer(id)
) )
""") """)