Added my_processes_post_migration optional management
This commit is contained in:
parent
eee1cee0d5
commit
1770228900
|
@ -42,6 +42,14 @@ then
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
fi
|
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 ]
|
if [ $COMMIT -eq 1 ]
|
||||||
then
|
then
|
||||||
echo "COMMIT;"
|
echo "COMMIT;"
|
||||||
|
|
|
@ -40,6 +40,14 @@ then
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
fi
|
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 ]
|
if [ $COMMIT -eq 1 ]
|
||||||
then
|
then
|
||||||
echo "COMMIT;"
|
echo "COMMIT;"
|
||||||
|
|
Loading…
Reference in New Issue