Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (15 sloc) 0.456 kb
#!/bin/bash
if [ -z "$pgservice_core" ]; then
echo "Undefined or empty pgservice_core!"
exit 1
fi
PGSERVICE="$pgservice_core" psql --set ON_ERROR_STOP=on -f - <<EOF
BEGIN;
UPDATE ONLY docattr SET type = 'enum' FROM docfam WHERE docfam.name = 'THESAURUS' AND docfam.id = docattr.docid AND docattr.id = 'thes_lang' AND docattr.type = 'enumlist';
COMMIT;
EOF
RET=$?
if [ $RET -ne 0 ]; then
echo "Error updating thesaurus attributes."
exit $RET
fi
Jump to Line
Something went wrong with that request. Please try again.