Added my_processes_post_migration optional management

This commit is contained in:
Carlos Ruiz 2008-03-17 14:29:43 +00:00
parent eee1cee0d5
commit 1770228900
2 changed files with 16 additions and 0 deletions

View File

@ -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;"

View File

@ -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;"