We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dff984 commit 9cc80fbCopy full SHA for 9cc80fb
scripts/migration
@@ -24,7 +24,7 @@ function apply() {
24
echo $"Usage: ${0##*/} apply (migration_version or latest)"
25
else
26
if [ "$version" == "latest" ]; then
27
- version=$(hasura migrate status | cut -d' ' -f1 | tail -n+2 | sort -r | head -n1)
+ version=$(hasura migrate status | cut -d' ' -f1 | tail -n+3 | sort -r | head -n1)
28
fi
29
hasura migrate apply --version "$version"
30
0 commit comments