Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1 from eguaj/1.1-A2971

Fixes for migration from platform 3.2 (closes #2971)
  • Loading branch information...
commit 46d31613714d778752521e1b9e20d96a55f1218d 2 parents 2eb92dc + b905b6e
Éric Brison authored September 06, 2012
1  Class/Method.Thesaurus.php
@@ -79,6 +79,7 @@ function getSqlFilter($oa, $thv)
79 79
     }
80 80
     /**
81 81
      * refresh relations from uri
  82
+     * @apiExpose
82 83
      */
83 84
     function refreshConcepts()
84 85
     {
17  THESAURUS_premigr_1.1.0
... ...
@@ -0,0 +1,17 @@
  1
+#!/bin/bash
  2
+
  3
+if [ -z "$pgservice_core" ]; then
  4
+	echo "Undefined or empty pgservice_core!"
  5
+	exit 1
  6
+fi
  7
+
  8
+PGSERVICE="$pgservice_core" psql --set ON_ERROR_STOP=on -f - <<EOF
  9
+BEGIN;
  10
+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';
  11
+COMMIT;
  12
+EOF
  13
+RET=$?
  14
+if [ $RET -ne 0 ]; then
  15
+    echo "Error updating thesaurus attributes."
  16
+    exit $RET
  17
+fi

0 notes on commit 46d3161

Please sign in to comment.
Something went wrong with that request. Please try again.