making the backup table name more generic than "snowday"
authorChris Sharp <csharp@georgialibraries.org>
Wed, 19 Feb 2014 21:11:34 +0000 (16:11 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 19 Feb 2014 21:11:34 +0000 (16:11 -0500)
batch_void_fines.sh

index 6033c4a..6852bb6 100755 (executable)
@@ -66,9 +66,9 @@ if [ $(echo $DATE | grep ",") ]; then
 fi
 
 if [ -n "$SYSTEM" ]; then
-       BACKUP_TABLE="$BACKUP_SCHEMA.`echo $SYSTEM | tr '[:upper:]' '[:lower:]'`_snowday_fines_`echo $DATE | tr '-' '_' | sed "s/'//g" | sed "s/, /_/g"`"
+       BACKUP_TABLE="$BACKUP_SCHEMA.`echo $SYSTEM | tr '[:upper:]' '[:lower:]'`_batch_voided_fines_`echo $DATE | tr '-' '_' | sed "s/'//g" | sed "s/, /_/g"`"
 else           
-       BACKUP_TABLE="$BACKUP_SCHEMA.`echo $BRANCH | tr '[:upper:]' '[:lower:]' | tr '-' '_'`_snowday_fines_`echo $DATE | tr '-' '_' | sed "s/'//g" | sed "s/, /_/g"`"
+       BACKUP_TABLE="$BACKUP_SCHEMA.`echo $BRANCH | tr '[:upper:]' '[:lower:]' | tr '-' '_'`_batch_voided_fines_`echo $DATE | tr '-' '_' | sed "s/'//g" | sed "s/, /_/g"`"
 fi
 read -d '' SYSTEM_Q <<END_OF_Q
 SELECT * INTO $BACKUP_TABLE