awips2/deltaScripts/13.6.1/bufruaTimeColumns.sh
Ben Steffensmeier 095f200bd9 Issue #1992 Remove redundant time columns from bufrua.
Change-Id: If0799726ff9fa3d90026d0115cc03bd55347ce90

Former-commit-id: 9c55581ad2 [formerly ad0cefc7fa [formerly 3e916aad7d281ba53cd1634a15d7ac521943bc75]]
Former-commit-id: ad0cefc7fa
Former-commit-id: e11099ff24
2013-07-19 11:53:23 -05:00

7 lines
296 B
Bash

#!/bin/bash
# DR #1992 - this update script will drop the refHour and validTime columns
# from the bufrua column, refTime has the exact same value.
PSQL="/awips2/psql/bin/psql"
${PSQL} -U awips -d metadata -c "ALTER TABLE bufrua DROP COLUMN IF EXISTS validtime, DROP COLUMN IF EXISTS refhour;"