@@ -1730,7 +1730,7 @@ function apply_sql_after_db_restore() {
17301730}
17311731
17321732# ######################################
1733- # Apply DDL "do " code
1733+ # Apply delta SQL "DO " code
17341734# Globals:
17351735# DELTA_SQL_DO, DB_NAME, MACHINE_HOME, VERBOSE_OUTPUT_REDIRECT
17361736# Arguments:
@@ -1740,10 +1740,10 @@ function apply_sql_after_db_restore() {
17401740# ######################################
17411741function apply_ddl_do_code() {
17421742 local delta_ddl_do=$1
1743- # Apply DDL code
1743+ # Apply delta SQL "DO" code
17441744 OP_START_TIME=$( date +%s) ;
17451745 if ([[ ! -z " $delta_ddl_do " ]] && [[ " $delta_ddl_do " != " " ]]); then
1746- msg " Apply DDL SQL code"
1746+ msg " Applying delta SQL \" DO \" code... "
17471747 delta_ddl_do_filename=$( basename $delta_ddl_do )
17481748 docker_exec bash -c " psql --set ON_ERROR_STOP=on -U postgres $DB_NAME -b -f $MACHINE_HOME /$delta_ddl_do_filename $VERBOSE_OUTPUT_REDIRECT "
17491749 END_TIME=$( date +%s) ;
@@ -1753,19 +1753,19 @@ function apply_ddl_do_code() {
17531753}
17541754
17551755# ######################################
1756- # Apply DDL "undo " code
1756+ # Apply delta SQL "UNDO " code
17571757# Globals:
17581758# DELTA_SQL_UNDO, DB_NAME, MACHINE_HOME, VERBOSE_OUTPUT_REDIRECT
17591759# Arguments:
1760- # 1 - path to file with ddl undo code
1760+ # 1 - path to file with delta SQL undo code
17611761# Returns:
17621762# None
17631763# ######################################
17641764function apply_ddl_undo_code() {
17651765 local delta_ddl_undo=$1
17661766 OP_START_TIME=$( date +%s) ;
17671767 if ([[ ! -z ${delta_ddl_undo+x} ]] && [[ " $delta_ddl_undo " != " " ]]); then
1768- msg " Apply DDL undo SQL code"
1768+ msg " Applying delta SQL \" UNDO \" code... "
17691769 delta_ddl_undo_filename=$( basename $delta_ddl_undo )
17701770 docker_exec bash -c " psql --set ON_ERROR_STOP=on -U postgres $DB_NAME -b -f $MACHINE_HOME /$delta_ddl_undo_filename $VERBOSE_OUTPUT_REDIRECT "
17711771 END_TIME=$( date +%s) ;
0 commit comments