8 lines
506 B
Bash
8 lines
506 B
Bash
#!/bin/sh
|
|
|
|
# This is a workaround for an error that occurs when running 'nfldb-update' where some of the JSON data it
|
|
# gets from the internet contains "JAX" instead of "JAC" as the key for the Jacksonville Jaguars team
|
|
psql --username=nfldb nfldb --command="INSERT INTO team VALUES ('JAX', 'Jacksonville', 'Jaguars')"
|
|
nfldb-update
|
|
psql --username=nfldb nfldb --command="UPDATE play SET pos_team = 'JAC' WHERE pos_team = 'JAX'"
|
|
psql --username=nfldb nfldb --command="DELETE FROM team WHERE team_id = 'JAX'" |