mirror of https://github.com/artifacthub/hub.git
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:
parent
fe5bf1c7e0
commit
c5b5d7252a
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue