mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-04-30 14:39:56 -05:00
15c50f46b5
* 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>
16 lines
352 B
Bash
Executable File
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"
|