13 lines
206 B
Bash
Executable File
13 lines
206 B
Bash
Executable File
#!/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
|