Mercurial > hg > orthanc-postgresql
view IndexPlugin/PostgreSQLVersion5.sql @ 163:43d5a4e03e8d readonly-mode
added Readonly mode to try to improve transactions isolation
author | amazy |
---|---|
date | Tue, 13 Mar 2018 11:26:46 +0100 |
parents | f6ca4c202c1a |
children |
line wrap: on
line source
CREATE TABLE Resources( internalId BIGSERIAL NOT NULL PRIMARY KEY, resourceType INTEGER NOT NULL, publicId VARCHAR(64) NOT NULL, parentId BIGINT REFERENCES Resources(internalId) ON DELETE CASCADE ); CREATE TABLE MainDicomTags( id BIGINT REFERENCES Resources(internalId) ON DELETE CASCADE, tagGroup INTEGER, tagElement INTEGER, value BYTEA, PRIMARY KEY(id, tagGroup, tagElement) ); CREATE TABLE DicomIdentifiers( id BIGINT REFERENCES Resources(internalId) ON DELETE CASCADE, tagGroup INTEGER, tagElement INTEGER, value BYTEA, PRIMARY KEY(id, tagGroup, tagElement) );