Allow you to easily run all migrations by passing "all"

Helpful for testing or if something went wrong
This commit is contained in:
David Heinemeier Hansson
2025-06-29 12:49:51 -07:00
parent d227a541f0
commit dedc08a76e

View File

@ -2,8 +2,13 @@
cd ~/.local/share/omarchy cd ~/.local/share/omarchy
# Remember the version we're at before upgrading if [[ $1 == "all" ]]; then
last_updated_at=$(git log -1 --format=%cd --date=unix) # Run all migrations
last_updated_at=1
else
# Remember the version we're at before upgrading
last_updated_at=$(git log -1 --format=%cd --date=unix)
fi
# Get the latest # Get the latest
git pull git pull
@ -20,4 +25,4 @@ for file in migrations/*.sh; do
done done
# Back to where we came from # Back to where we came from
cd - cd - >/dev/null