Omaha #3921 Added IF EXISTS clause to table drop
Former-commit-id:d5e0af5625
[formerly0275a894b3
] [formerlybdc8b9e8c0
] [formerlyd5e0af5625
[formerly0275a894b3
] [formerlybdc8b9e8c0
] [formerly0966af1580
[formerlybdc8b9e8c0
[formerly 8f0c84905653b0784183debc6703ee2d0be09fa2]]]] Former-commit-id:0966af1580
Former-commit-id:925ada6fd5
[formerly21c1044350
] [formerly f33a02f675de330db6909aaba2c41a2194c51a46 [formerly44ee3b88fb
]] Former-commit-id: ee175e9eea104f1bc390ff0cd93a0194108ed251 [formerly87c089c240
] Former-commit-id:29db7d5234
This commit is contained in:
parent
bd95005915
commit
ea65e44e7c
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@
|
||||||
#
|
#
|
||||||
# This script will add table dd_data_set_latency to the metadata.AWIPS schema.
|
# This script will add table dd_data_set_latency to the metadata.AWIPS schema.
|
||||||
# This script will also create an Identifier Sequence (data_set_latency_seq sequence) for the new table.
|
# This script will also create an Identifier Sequence (data_set_latency_seq sequence) for the new table.
|
||||||
#
|
#
|
||||||
PSQL="/awips2/psql/bin/psql"
|
PSQL="/awips2/psql/bin/psql"
|
||||||
|
|
||||||
if [ ! -f ${PSQL} ];
|
if [ ! -f ${PSQL} ];
|
||||||
|
@ -79,13 +79,13 @@ function createDataSetLatencyTable
|
||||||
function dropDataSetLatencyTable
|
function dropDataSetLatencyTable
|
||||||
{
|
{
|
||||||
echo "INFO: Dropping data_set_latency_seq sequence"
|
echo "INFO: Dropping data_set_latency_seq sequence"
|
||||||
${PSQL} -U awips -d metadata -a -c "DROP SEQUENCE data_set_latency_seq;"
|
${PSQL} -U awips -d metadata -a -c "DROP SEQUENCE IF EXISTS data_set_latency_seq;"
|
||||||
if [ $? -ne 0 ];
|
if [ $? -ne 0 ];
|
||||||
then
|
then
|
||||||
echo "FATAL: Drop Failed!"
|
echo "FATAL: Drop Failed!"
|
||||||
fi
|
fi
|
||||||
echo "INFO: Dropping dd_data_set_latency table"
|
echo "INFO: Dropping dd_data_set_latency table"
|
||||||
${PSQL} -U awips -d metadata -a -c "DROP TABLE dd_data_set_latency;"
|
${PSQL} -U awips -d metadata -a -c "DROP TABLE IF EXISTS dd_data_set_latency;"
|
||||||
if [ $? -ne 0 ];
|
if [ $? -ne 0 ];
|
||||||
then
|
then
|
||||||
echo "FATAL: Drop Failed!"
|
echo "FATAL: Drop Failed!"
|
||||||
|
|
Loading…
Add table
Reference in a new issue