bazzar/scripts/generate-migrations

13 lines
206 B
Plaintext
Raw Normal View History

2023-06-03 13:31:57 +02:00
#!/usr/bin/env zsh
NAME=$1
if [[ "$1" == "" ]];
then
echo "Name is required"
exit 1
fi
DATE=$(date +'%Y%m%d%H%M%S')
touch migrations/${DATE}_${NAME}.sql
#touch migrations/${DATE}_${NAME}_down.sql