2019-11-27 15:23:00 -08:00

8 lines
217 B
Bash
Executable File

#!/usr/bin/env bash
# Get current directory (of this script)
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# Run SQL files in schema/ directory
psql -d "$DATABASE_URL" -f $DIR/schema/*.sql