Mercurial > hg > orthanc-postgresql
view IndexPlugin/PostgreSQLVersion6.sql @ 149:df15112ed5a0
fix build with PostgreSQL 10.0
author | jodogne |
---|---|
date | Mon, 16 Oct 2017 09:16:35 +0200 |
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 TEXT, PRIMARY KEY(id, tagGroup, tagElement) ); CREATE TABLE DicomIdentifiers( id BIGINT REFERENCES Resources(internalId) ON DELETE CASCADE, tagGroup INTEGER, tagElement INTEGER, value TEXT, PRIMARY KEY(id, tagGroup, tagElement) );