diff --git a/migration/migrate.sh b/migration/migrate.sh index e7aa6b8c4d..465cebb38e 100644 --- a/migration/migrate.sh +++ b/migration/migrate.sh @@ -42,6 +42,14 @@ then echo done fi +if [ -d $DIRINI/../my_processes_post_migration ] +then + for file in $DIRINI/../my_processes_post_migration/*.sql; do + echo "SELECT '`basename $file`' AS Filename FROM dual;" + cat $file | dos2unix | sed 's/commit[ ]*;//I' + echo + done +fi if [ $COMMIT -eq 1 ] then echo "COMMIT;" diff --git a/migration/migrate_postgresql.sh b/migration/migrate_postgresql.sh index 356029aa6b..a0c4cd0042 100644 --- a/migration/migrate_postgresql.sh +++ b/migration/migrate_postgresql.sh @@ -40,6 +40,14 @@ then echo done fi +if [ -d $DIRINI/../my_processes_post_migration/postgresql ] +then + for file in $DIRINI/../my_processes_post_migration/postgresql/*.sql; do + echo "SELECT '`basename $file`' AS Filename;" + cat $file | dos2unix | sed 's/commit[ ]*;//I' + echo + done +fi if [ $COMMIT -eq 1 ] then echo "COMMIT;"