awips2/deltaScripts/13.3.1/convertPluginNameToDataType.sh
Brad Gonzales 3989a20f06 Issue #1615 Updated group name in common_static edexProcessStats.xml. Added delta script to update aggregate table group names from pluginName to dataType.
Amend: Corrected comment in convertPluginNameToDataType.sh

Change-Id: I5e0084704cef599d368165058b8008bbb2bc8e18

Former-commit-id: f8aacc2e50 [formerly 6a0e9c331b] [formerly 15f32005a9540656181b4b6540a90261c4384280 [formerly 03dd42463e]] [formerly dfef89ee64 [formerly 03dd42463e [formerly a2391d76c91d3d2b86b8e74eed1e0754091650a0]]]
Former-commit-id: dfef89ee64
Former-commit-id: 50e1b1845799292ee1dd0352a97bb78fa276ca05 [formerly e495a5f663]
Former-commit-id: 936facbe86
2013-02-14 17:34:55 -06:00

23 lines
499 B
Bash

#!/bin/bash
SQL_SCRIPT="convertPluginNameToDataType.sql"
# ensure that the sql script is present
if [ ! -f ${SQL_SCRIPT} ]; then
echo "ERROR: the required sql script - ${SQL_SCRIPT} was not found."
echo "FATAL: the update has failed!"
exit 1
fi
echo "INFO: update started"
# run the update
/awips2/psql/bin/psql -U awips -d metadata -f ${SQL_SCRIPT}
if [ $? -ne 0 ]; then
echo "FATAL: the update has failed!"
exit 1
fi
echo "INFO: the update has completed successfully!"
exit 0