Former-commit-id:bff02aa65d
[formerly9b7251d17e
] [formerlycc48fa4fc6
] [formerlycc48fa4fc6
[formerlyb80782b081
]] [formerly53adfb7345
[formerlycc48fa4fc6
[formerlyb80782b081
] [formerly53adfb7345
[formerly 2bdf04a09ff6a145eb73f5ad5c1e5140c8a3e0d0]]]] Former-commit-id:53adfb7345
Former-commit-id: 88ba6b862ffe12cec1c5baf0ed719ab671dbf9e5 [formerly c2b93522588c69765c159821337fa509e477775e] [formerly1f44caaedb
[formerlydee1480773
]] Former-commit-id:1f44caaedb
Former-commit-id:12e0cd07f2
23 lines
564 B
Bash
23 lines
564 B
Bash
#!/bin/bash
|
|
|
|
SQL_SCRIPT="increaseAggregateRecordGroupingLength.sql"
|
|
|
|
# ensure that the sql script is present
|
|
if [ ! -f ${SQL_SCRIPT} ]; then
|
|
echo "ERROR: the required sql script - ${SQL_SCRIPT} was not found."
|
|
echo "FATAL: the update has failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "INFO: update started - increasing the size of the aggregate.grouping column"
|
|
|
|
# run the update
|
|
/awips2/psql/bin/psql -U awips -d metadata -f ${SQL_SCRIPT}
|
|
if [ $? -ne 0 ]; then
|
|
echo "FATAL: the update has failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "INFO: the update has completed successfully!"
|
|
|
|
exit 0
|