ipld-eth-server/scripts/create_migration
2017-10-27 14:20:22 -05:00

10 lines
227 B
Bash
Executable File

#!/bin/bash
if [ $# -eq 1 ]
then
migrate -database postgresql://localhost:5432/postgres create -dir ./migrations -ext sql $1
else
echo "**An Error Occurred**"
echo "Usage: ./scripts/create_migration <migration-name>"
fi