Former-commit-id:f2fac39428
[formerlya1d931fd44
[formerly61f269f54c
] [formerlyf2fac39428
[formerly d85b989f77196d20eb2d2a21cf4daa13d50474ae]]] Former-commit-id:a1d931fd44
[formerly61f269f54c
] Former-commit-id:a1d931fd44
Former-commit-id:77cbd6c1e5
10 lines
408 B
Bash
10 lines
408 B
Bash
#!/bin/sh
|
|
# This script should be run on dx1 as part of next delivery to remove the hdfFileId columns
|
|
|
|
tablesToUpdate=`psql -U awips -d metadata -t -c "select table_name from information_schema.columns where table_catalog='metadata' and table_schema='awips' and column_name = 'hdffileid';"`
|
|
|
|
for table in $tablesToUpdate
|
|
do
|
|
psql -U awips -d metadata -t -c "ALTER TABLE $table DROP COLUMN hdffileid"
|
|
done
|
|
|