You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@echooffrem DESCRIPTIONrem two-step scriptrem 1) get DDLs from oracle schemarem 2) auto-commit DDLs in SVNrem REQUREMENTSrem java must be installedrem svn console client must be installedrem output dir must be under version control in svnrem SET PARAMETERSrem first parameter is DB_URLrem second parameter is OUTPUT_DIRrem you can overwrite this parameterssetDB_URL=setOUTPUT_DIR=setGIT_BRANCH=autotrack_TEST2
setCOMMIT_MESSAGE="automatic commit by oracle-ddl2git"setWORKING_DIR=%cd%rem test db connection,rem if db connect is fail, do not perform any filesystem operation, only clean tmp file end exitecho ========= start of test db connection %date%%time% ==============
settempfile=connection.tmp
del%tempfile%
java -jar scheme2ddl.jar --test-connection -url %DB_URL%>%tempfile%2>&1
find"FAIL connect to"%tempfile%ifnoterrorlevel1goto :exit
:runScriptrem delete all files from output directory exept system filesrem this command must keep on disk svn meta information stored in .svn foldersecho ========= start of scheme2ddl %date%%time% ==============
cd%OUTPUT_DIR%
git checkout %GIT_BRANCH%
git clean -f -d
git rm -rf .
git -c core.quotepath=false checkout HEAD -- .tgitconfig .gitignore
cd%WORKING_DIR%
java -jar scheme2ddl.jar -url %DB_URL% -output %OUTPUT_DIR% -c scheme2ddl.config.xml
echo ========= end of scheme2ddl %date%%time% ==============
cd%OUTPUT_DIR%
git add -A
git commit -m %COMMIT_MESSAGE%
git push
:exitcd%WORKING_DIR%del%tempfile%
The text was updated successfully, but these errors were encountered:
add support for git
The text was updated successfully, but these errors were encountered: