Files
hatchet/hack/dev/atlas-migrate.sh
T
Sean Reilly 15c50f46b5 Partial PR - need to generate SDK - Add endpoint to get the total free worker slots for a worker and the … (#857)
* Add endpoint to get the total free worker slots for a worker and the max runs

* update to use WorkerSempahoreCount instead of checking stepRunId

* modify the query for the new table and change the interface

* bump golangci-lint make changes to name of returned data

* revert the simple example

---------

Co-authored-by: Sean Reilly <sean@hatchet.run>
2024-09-19 10:11:16 -07:00

16 lines
352 B
Bash
Executable File

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