Skip to content

Commit

Permalink
Merge pull request #216 from opengisch/dms
Browse files Browse the repository at this point in the history
 add DMS for main layers
itsakifa authored Apr 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 34f3a37 + 83ab97e commit ea210d9
Showing 3 changed files with 6,607 additions and 5,602 deletions.
21 changes: 21 additions & 0 deletions datamodel/changelogs/0100/0100_10_dms.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CREATE TABLE signalo_db.dms_document(
id uuid DEFAULT uuid_generate_v1() NOT NULL,
identification text NOT NULL,
path text,
type text
);
ALTER TABLE ONLY signalo_db.dms_document ADD CONSTRAINT dms_document_pkey PRIMARY KEY (id);


CREATE TABLE signalo_db.dms_rel_document(
id uuid DEFAULT uuid_generate_v1() NOT NULL,
fk_document uuid,
object_class text,
fk_object uuid
);

ALTER TABLE ONLY signalo_db.dms_rel_document ADD CONSTRAINT dms_rel_document_pkey PRIMARY KEY (id);

ALTER TABLE ONLY signalo_db.dms_rel_document
ADD CONSTRAINT fk_document FOREIGN KEY (fk_document)
REFERENCES signalo_db.dms_document(id) MATCH FULL DEFERRABLE INITIALLY DEFERRED;
1 change: 1 addition & 0 deletions datamodel/setup.sh
Original file line number Diff line number Diff line change
@@ -79,6 +79,7 @@ psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -v SRID=${SRID} -f ${DIR}/changel
psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -v SRID=${SRID} -f ${DIR}/changelogs/0100/0100_07_missing_left_right.sql
psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -v SRID=${SRID} -f ${DIR}/changelogs/0100/0100_08_477_signs.sql
psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -v SRID=${SRID} -f ${DIR}/changelogs/0100/0100_09_exceptes.sql
psql "service=${PGSERVICE}" -v ON_ERROR_STOP=1 -v SRID=${SRID} -f ${DIR}/changelogs/0100/0100_10_dms.sql

if [[ $demo_data == True ]]; then
echo "*** inserting demo_data"
12,187 changes: 6,585 additions & 5,602 deletions project/signalo.qgs

Large diffs are not rendered by default.

0 comments on commit ea210d9

Please sign in to comment.