Merge "Issue #1682 Delta script for ebxml registry query changes" into development

Former-commit-id: f5690ecafe [formerly 9f05ea1112] [formerly 6fb995ca9f] [formerly 6fb995ca9f [formerly d371192e2b]] [formerly f5690ecafe [formerly 9f05ea1112] [formerly 6fb995ca9f] [formerly 6fb995ca9f [formerly d371192e2b]] [formerly 598c254561 [formerly 6fb995ca9f [formerly d371192e2b] [formerly 598c254561 [formerly 07df23bc04234340a3c2386c3279195c45cdb427]]]]]
Former-commit-id: 598c254561
Former-commit-id: c8abe877a5 [formerly 2cebbf7f6b] [formerly 796f929418] [formerly 495afb95484625503f0a4ece824095f508869f5c [formerly a5a750b687b521651156ef078eeba6f7f7d0a1ab] [formerly 796f929418 [formerly e08fa014d0]]]
Former-commit-id: af2794d7b5627b07943d7c1d92e1ddfcb6327264 [formerly c760d6b20107efe74e03f29bc5711e775d097399] [formerly dedb3cb902 [formerly 7aa870767f]]
Former-commit-id: dedb3cb902
Former-commit-id: c9b7efd85c
This commit is contained in:
Richard Peter 2013-10-23 10:02:12 -05:00 committed by Gerrit Code Review
commit 0d229c0aab
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#!/bin/bash
PSQL=/awips2/psql/bin/psql
DIR=`dirname $0`
${PSQL} -U awips -d metadata -f ${DIR}/updateQueriesSql.sql

View file

@ -0,0 +1,26 @@
delete from ebxml.taxonomyelementtype_classificationnode where classificationnode_id='urn:oasis:names:tc:ebxml-regrep:QueryLanguage:SPARQL';
delete from ebxml.classificationnode where id= 'urn:oasis:names:tc:ebxml-regrep:QueryLanguage:SPARQL';
delete from ebxml.taxonomyelementtype_classificationnode where classificationnode_id='urn:oasis:names:tc:ebxml-regrep:QueryLanguage:SQL-92';
delete from ebxml.classificationnode where id= 'urn:oasis:names:tc:ebxml-regrep:QueryLanguage:SQL-92';
delete from ebxml.taxonomyelementtype_classificationnode where classificationnode_id='urn:oasis:names:tc:ebxml-regrep:QueryLanguage:XQuery';
delete from ebxml.classificationnode where id= 'urn:oasis:names:tc:ebxml-regrep:QueryLanguage:XQuery';
delete from ebxml.taxonomyelementtype_classificationnode where classificationnode_id='urn:oasis:names:tc:ebxml-regrep:QueryLanguage:EJBQL';
delete from ebxml.classificationnode where id= 'urn:oasis:names:tc:ebxml-regrep:QueryLanguage:EJBQL';
INSERT INTO ebxml.classificationnode (id,lid,objecttype,owner,versionname,code,parent,path) VALUES
('urn:oasis:names:tc:ebxml-regrep:QueryLanguage:HQL','urn:oasis:names:tc:ebxml-regrep:QueryLanguage:HQL',
'urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:ClassificationNode','NCF','1','HQL',
'urn:oasis:names:tc:ebxml-regrep:classificationScheme:QueryLanguage','/urn:oasis:names:tc:ebxml-regrep:classificationScheme:QueryLanguage/HQL');
INSERT INTO ebxml.taxonomyelementtype_classificationnode(taxonomyelementtype_id,classificationnode_id) VALUES('urn:oasis:names:tc:ebxml-regrep:classificationScheme:QueryLanguage','urn:oasis:names:tc:ebxml-regrep:QueryLanguage:HQL');
delete from ebxml.taxonomyelementtype_classificationnode where classificationnode_id='urn:oasis:names:tc:ebxml-regrep:query:ExportObject';
delete from ebxml.classificationnode where id= 'urn:oasis:names:tc:ebxml-regrep:query:ExportObject';
delete from ebxml.taxonomyelementtype_classificationnode where classificationnode_id='urn:oasis:names:tc:ebxml-regrep:query:FindAllMyObjects';
delete from ebxml.classificationnode where id= 'urn:oasis:names:tc:ebxml-regrep:query:FindAllMyObjects';
delete from ebxml.taxonomyelementtype_classificationnode where classificationnode_id='urn:oasis:names:tc:ebxml-regrep:query:ExtrinsicObjectQuery';
delete from ebxml.classificationnode where id= 'urn:oasis:names:tc:ebxml-regrep:query:ExtrinsicObjectQuery';