Skip to content

Commit 9cc80fb

Browse files
committed
scripts: fix hasura migration bash command
1 parent 2dff984 commit 9cc80fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/migration

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function apply() {
2424
echo $"Usage: ${0##*/} apply (migration_version or latest)"
2525
else
2626
if [ "$version" == "latest" ]; then
27-
version=$(hasura migrate status | cut -d' ' -f1 | tail -n+2 | sort -r | head -n1)
27+
version=$(hasura migrate status | cut -d' ' -f1 | tail -n+3 | sort -r | head -n1)
2828
fi
2929
hasura migrate apply --version "$version"
3030
fi

0 commit comments

Comments
 (0)