awips2/deltaScripts/16.2.2/DR5269/watchwarn_drop.sh
2022-05-05 12:34:50 -05:00

16 lines
378 B
Bash

#!/bin/bash
# DR #5269 - This script drops table fxatext.watchwarn
PSQL="/awips2/psql/bin/psql"
echo "INFO: Dropping table fxatext.watchwarn."
${PSQL} -U awips -d fxatext -q -c "DROP TABLE IF EXISTS watchwarn CASCADE;"
if [ $? -eq 0 ]; then
echo "INFO: watchwarn table successfully dropped."
else
echo "WARNING: Unable to drop watchwarn table."
exit 1
fi