Files
mip/InstallMIP.cmd
hardya 320ce75fcf Changes made for BulkLoad information provided by Gareth on 5th March (new bas_dwg/102M.jpg, csv exports)
New package mip_debug_constants.pks to be used to store compilation constants for debugging purposes (packages to use pl from mip_debug).

mip_quotation.pck modified to support exchanges based on being provided with an existing model rather than meter size. Changes to the DATAITEM_ROLES.csv to support this new field, impact on mandatory rules captured by mip_helper_special_cases.pck

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3900 248e525c-4dfb-0310-94bc-949c084e9493
2008-03-10 12:29:59 +00:00

143 lines
2.5 KiB
Batchfile

@echo off
if "%1"=="" goto :usage
if "%2"=="" goto :usage
if "%3"=="" goto :usage
if "%4"=="" goto :usage
if "%5"=="" goto :usage
@echo Install Schema
sqlplus /nolog @Schema\InstallMIP %1 %2 %3 %4 %5 %6
if "%6"=="" goto :not_associate
@echo Associate Schema
sqlplus /nolog @Schema\InstallAssociateSchema.sql %1 %2 %3 %4 %5 %6
:not_associate
@echo Install Seed
cd Data\Seed
call InstallSeed %3/%4@%5
cd ..\..
@echo Seed Complete
@echo Install Modules
sqlplus %3/%4@%5 @Modules\Modules.sql
@echo Modules Complete
sqlplus %3/%4@%5 @Data\Seed\create_passwords.sql
if "%6"=="" goto :done
if "%6"=="demo" goto :demo
if "%6"=="test" goto :test
if "%6"=="fat" goto :fat
if "%6"=="sat" goto :sat
if "%6"=="uat" goto :uat
if "%6"=="live" goto :live
if "%6"=="train" goto :train
if "%6"=="dev" goto :bulkload
:demo
@echo Demo
cd Data\Demo
call InstallData %3/%4@%5
cd ..\..
@echo Demo Complete
goto :bulkload
:test
@echo Install Test data
cd Data\test
call InstallData %3/%4@%5
@echo Installed Test data
@echo Installing Test application in APEX...
ruby apex_auto_install.rb %3
cd ..\..
@echo Test Complete
goto :bulkload
:fat
@echo Install FAT data
cd Data\fat
call InstallData %3/%4@%5
@echo Installed fat data
@echo Installing fat application in APEX...
ruby apex_auto_install.rb %3
cd ..\..
@echo fat install Complete
goto :bulkload
:sat
@echo Install SAT data
cd Data\sat
call InstallData %3/%4@%5
@echo Installed sat data
@echo Installing sat application in APEX...
ruby apex_auto_install.rb %3
cd ..\..
@echo sat install Complete
goto :bulkload
:train
@echo Training Data uses UAT data
goto :uat
:uat
@echo Install UAT data
cd Data\uat
call InstallData %3/%4@%5
@echo Installed uat data
cd ..\..
@echo uat install Complete
goto :bulkload
:live
@echo Install live data
cd Data\live
call InstallData %3/%4@%5
@echo Installed live data
@echo Installing live application in APEX...
ruby apex_auto_install.rb %3
cd ..\..
@echo live install Complete
goto :bulkload
:bulkload
@echo Perform Bulk Load
sqlplus %3/%4@%5 @Data\BulkLoad\bulk_load.sql "%6"
if "%6"=="" goto :not_substitution
@echo Set Substitution Strings
sqlplus /nolog @Schema\InstallSetSubstitution.sql %1 %2 %3 %4 %5 %6
goto :done
:not_substitution
@echo NO substitutions performed
goto :done
:usage
echo "usage InstallMIP sys_name sys_password app_name app_password db_connect_string [dev|demo|test|fat|sat|uat|train|live]"
:done
@echo DONE!