mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-20 00:00:13 -06:00
16 lines
338 B
Bash
Executable File
16 lines
338 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/atlas"
|
|
|
|
atlas migrate diff $MIGRATION_NAME \
|
|
--dir "file://sql/atlas" \
|
|
--to "file://sql/schema/v0.sql" \
|
|
--dev-url "docker://postgres/15/dev?search_path=public"
|