Skip to content

Commit

Permalink
Merge pull request #246 from KosukeOkamoto/update-discovery-scripts-f…
Browse files Browse the repository at this point in the history
…or-4.7.1

Update script version for Watson Discovery 4.7.1 on CP4D
  • Loading branch information
michelle-miller authored Jul 28, 2023
2 parents 9414b24 + fd95f19 commit 03168f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion discovery-data/latest/all-backup-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,11 @@ if [ "${COMMAND}" = 'restore' ] ; then
fi
fi
if [ $(compare_version "${WD_VERSION}" "4.7.0") -ge 0 ] ; then
restart_job "enrichment-model-copy orchestrator-setup"
restart_job_list="enrichment-model-copy orchestrator-setup"
if [ $(compare_version "${WD_VERSION}" "4.7.1") -ge 0 ] ; then
restart_job_list="${restart_job_list} sdu-db-init"
fi
restart_job "${restart_job_list}"
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion discovery-data/latest/mt-mt-migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ do
CMD="psql -d dadmin -t -A -c \"SELECT table_name FROM information_schema.columns WHERE table_schema = 'public' AND column_name = 'tenant_id' ORDER BY table_name\""
standard_mt_tables=($(oc exec ${OC_ARGS} "${PG_POD}" -- bash -c "${CMD}"))
echo "Updating tables with tenant_id: ${standard_mt_tables[*]}"
foreign_key_tables=(wd_collections wd_collections_status wd_collections_project wd_datasets_collection wd_collection_document_status wd_collections_enrichment_job_status wd_datasets wd_datasets_status wd_datasets_project wd_enrichments wd_enrichments_lang wd_enrichments_project)
foreign_key_tables=(wd_collections wd_collections_status wd_collections_project wd_datasets_collection wd_collection_document_status wd_collections_enrichment_job_status wd_datasets wd_datasets_status wd_datasets_project wd_enrichments wd_enrichments_lang wd_enrichments_project wd_collection_stats)

SQL="BEGIN;"

Expand Down
2 changes: 1 addition & 1 deletion discovery-data/latest/version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
The Backup and Restore Scripts for the Watson Discovery on CP4D.
Scripts Version: 4.7.0
Scripts Version: 4.7.1

0 comments on commit 03168f5

Please sign in to comment.