From 1770228900621b6657f1b1552fac27ae4e1c4efc Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 17 Mar 2008 14:29:43 +0000 Subject: [PATCH] Added my_processes_post_migration optional management --- migration/migrate.sh | 8 ++++++++ migration/migrate_postgresql.sh | 8 ++++++++ 2 files changed, 16 insertions(+) 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;"