Skip to content

Commit

Permalink
Add the index to the column series_id on the systemmetadata table.
Browse files Browse the repository at this point in the history
  • Loading branch information
taojing2002 committed Dec 4, 2018
1 parent 6e8fe12 commit 3b3bc57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/upgrade-db-to-2.10.0-postgres.sql
Expand Up @@ -5,6 +5,7 @@ SELECT setval('xml_catalog_id_seq', (SELECT max(catalog_id) from xml_catalog));

INSERT INTO xml_catalog (entry_type, public_id, system_id) SELECT 'Schema', 'http://www.openarchives.org/OAI/2.0/oai_dc/', '/schema/oai_dc/oai_dc.xsd' WHERE NOT EXISTS (SELECT * FROM xml_catalog WHERE public_id='http://www.openarchives.org/OAI/2.0/oai_dc/');

CREATE INDEX IF NOT EXISTS systemMetadata_series_id on systemMetadata(series_id);

/*
* update the database version
Expand Down
1 change: 1 addition & 0 deletions src/xmltables-postgres.sql
Expand Up @@ -322,6 +322,7 @@ CREATE TABLE systemMetadata (
file_name text, -- the suggested file name for this object
CONSTRAINT systemMetadata_pk PRIMARY KEY (guid)
);
CREATE INDEX systemMetadata_series_id on systemMetadata(series_id);

/*
* Table used to store the properties for media types. They are part of the system metadata. But a media type
Expand Down

0 comments on commit 3b3bc57

Please sign in to comment.