awips2/deltaScripts/16.2.2/DR5283/drop_bufrmosngm.sh
2022-05-05 12:34:50 -05:00

17 lines
No EOL
567 B
Bash
Executable file

#!/bin/bash
# DR #5283 - Remove support for NGM. Drops the bufrmosngm table and removes
# references to the plugin from purgejobs and plugin_info.
PSQL="/awips2/psql/bin/psql"
echo "INFO: Attempting to drop bufrmosngm table"
${PSQL} -U awips -d metadata -c "DROP TABLE IF EXISTS bufrmosngm"
echo "INFO: Attempting to remove bufrmosNGM plugin references from other tables"
${PSQL} -U awips -d metadata -c "DELETE FROM plugin_info where name = 'bufrmosNGM'"
${PSQL} -U awips -d metadata -c "DELETE FROM purgejobs where plugin = 'bufrmosNGM'"
echo "INFO: Done."