diff --git a/bin/deploy_to_test.sh b/bin/deploy_to_test.sh index 6379f9cc0a5b3e4bfb74180d18dd942dc210d5b8..ce04fd23ffa897386074cf0892a189590ccf84d6 100644 --- a/bin/deploy_to_test.sh +++ b/bin/deploy_to_test.sh @@ -9,7 +9,7 @@ source $ROOT/functions.sh runRemoteSQL $ROOT/../source/setup.sql if [ -d $ROOT/../source/tables/ ]; then - for f in $ROOT/../source/tables/* + for f in $ROOT/../source/tables/*.sql do runRemoteSQL "$f" done @@ -18,7 +18,16 @@ else fi if [ -d $ROOT/../source/fk/ ]; then - for f in $ROOT/../source/fk/* + for f in $ROOT/../source/fk/*.sql + do + runRemoteSQL "$f" + done +else + echo "No FK scripts found" +fi + +if [ -d $ROOT/../source/views/ ]; then + for f in $ROOT/../source/views/*.sql do runRemoteSQL "$f" done