awips2/deltaScripts/13.6.1/UpdateGfeDbid.sh
Ron Anderson fa3640fb11 Issue #2057 Added support for marking obsolete databases for later removal.
Change-Id: Ie1859e08c7a0305f3ea7bc82e726dd8ba1658b1a

Former-commit-id: 2a0c77eb5c [formerly db55eb737e5b7a82dec8f585eabda455717321a2]
Former-commit-id: b84a946f86
2013-07-31 17:38:09 -05:00

11 lines
286 B
Bash

#!/bin/bash
# run the update
/awips2/psql/bin/psql -U awips -d metadata -c "ALTER TABLE gfe_dbid ADD COLUMN removeddate timestamp without time zone;"
if [ $? -ne 0 ]; then
echo "FATAL: the update has failed!"
exit 1
fi
echo "INFO: the update has completed successfully!"
exit 0