Files
hatchet/hack/dev/atlas-migrate.sh
Gabe Ruttner bbc4e58dd9 feat: limits (#559)
* feat: workflow run limits

* fix: resource exhausted 429

* feat: event limit

* feat: worker limit

* fix: sensible error

* fix: pb

* feat: expose limits api

* feat: default limits

* feat: add enable alert option

* feat: slack and email alerts

* fix: cron interval

* feat: make metered util

* wip: schedules and crons

* chore: squash migration

* fix: select or insert

* fix: remove unfinished meter

* chore: atlas migration

* fix: template format

* fix: shared ErrResourceExhausted

* feat: cache

* fix: limit can be nil

* fix: clarification

* fix: close meter ticker

* fix: friendly error for child workflows
2024-06-07 10:57:57 -07:00

15 lines
321 B
Bash
Executable File

#!/bin/bash
# check if the first argument is empty
if [ -z "$1" ]; then
echo "Usage: $0 <version>"
exit 1
fi
atlas migrate hash --dir "file://sql/migrations"
atlas migrate diff $1 \
--dir "file://sql/migrations" \
--to "file://sql/schema/schema.sql" \
--dev-url "docker://postgres/15/dev?search_path=public"