Return error when something goes wrong in migrate.sh (#147)

Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
This commit is contained in:
Sergio C. Arteaga 2020-03-03 14:26:52 +01:00 committed by GitHub
parent fe5bf1c7e0
commit c5b5d7252a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ echo "- Applying schema migrations.."
cd schema
tern status --config $TERN_CONF --version-table $schemaVersionTable
tern migrate --config $TERN_CONF --version-table $schemaVersionTable
if [ $? -ne 0 ]; then exit 1; fi
echo "Done"
cd ..
@ -18,4 +19,5 @@ if [ $? -eq 0 ]; then
else
tern migrate --config $TERN_CONF --version-table $functionsVersionTable
fi
if [ $? -ne 0 ]; then exit 1; fi
echo "Done"