Skip to content

Commit

Permalink
Merge pull request #24 from Nayan/gkchanges
Browse files Browse the repository at this point in the history
minor changes
  • Loading branch information
Nayan committed Jan 3, 2014
2 parents cf4166c + f7c4ca7 commit 2727008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions KettleJobs/main/start_data_migration.bat
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
SET PDIPATH=I:\Devspace\opensourcetools\data-integration\
SET KETTLEPATH=C:\Users\nayan\Documents\GitHub\move-to-mifosx\KettleJobs\
SET DESTDB=mifostenant-ceda
SET DESTDB=mifostenant-gk

echo DROP DATABASE IF EXISTS `%DESTDB%`; > dropdb.sql
echo CREATE DATABASE `%DESTDB%`; > createdb.sql

mysql -uroot -pmysql < dropdb.sql
mysql -uroot -pmysql < createdb.sql
mysql -uroot -pmysql USE %DESTDB%;
mysql -uroot -pmysql %DESTDB% < %KETTLEPATH%main\load_mifosx_ddl.sql
mysql -uroot -pmysql %DESTDB% < %KETTLEPATH%main\load_mifosx_datatables.sql
mysql -uroot -pmysql %DESTDB% < %KETTLEPATH%main\load_mifosx_migration_stored_procedures.sql
mysql -uroot -pmysql %DESTDB% < %KETTLEPATH%main\load_mifosx_stage1_tables.sql

%PDIPATH%kitchen.bat /file:%KETTLEPATH%Stage1\Stage1.kjb /level:Error > transformationLog_%DESTDB%.log
1 change: 1 addition & 0 deletions KettleJobs/main/start_data_migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ echo "USE $DEST_DB" | mysql $MYSQL_ARGS
mysql $MYSQL_ARGS $DEST_DB < $KETTLE_JOBS_PATH/main/load_mifosx_ddl.sql
mysql $MYSQL_ARGS $DEST_DB < $KETTLE_JOBS_PATH/main/load_mifosx_datatables.sql
mysql $MYSQL_ARGS $DEST_DB < $KETTLE_JOBS_PATH/main/load_mifosx_migration_stored_procedures.sql
mysql $MYSQL_ARGS $DEST_DB < $KETTLE_JOBS_PATH/main/load_mifosx_stage1_tables.sql

$PDI_HOME/kitchen.sh /file:`readlink -f $KETTLE_JOBS_PATH/Stage1/Stage1.kjb`

0 comments on commit 2727008

Please sign in to comment.