diff --git a/apex-source-control b/apex-source-control index 2924356..841b37f 100755 --- a/apex-source-control +++ b/apex-source-control @@ -161,12 +161,13 @@ function apex_to_file { function file_to_apex { source config/asc.conf || die No config file at config/asc.conf - run_sql_cmd @/dev/stdin "${apexappid}" $(upcase "${workspace_name}") $(upcase "${parsing_schema}") $(upcase "${app_alias}") < p_workspace_name); APEX_APPLICATION_INSTALL.SET_WORKSPACE_ID ( l_workspace_id ); - --apex_application_install.set_offset( p_offset_num ); - apex_application_install.generate_offset; + + IF p_offset IS NOT NULL THEN + apex_application_install.set_offset( p_offset ); + ELSE + apex_application_install.generate_offset; + END IF; end; / @apex/install.sql