- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #216 from opengisch/dms
add DMS for main layers
Showing
3 changed files
with
6,607 additions
and
5,602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.