724f29407d4e7c43066b93cbd52a46e61f567638
[Evergreen.git] / Open-ILS / src / sql / Pg / build-db.sh
1 #!/bin/sh
2 # args: {db-host} {db-name} {db-user} {db-password}
3
4 echo "You may be prompted several times for your database password..."
5
6 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 002.schema.config.sql
7 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 005.schema.actors.sql
8 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 006.schema.permissions.sql
9 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 010.schema.biblio.sql
10 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 011.schema.authority.sql
11 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 020.schema.functions.sql
12 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 030.schema.metabib.sql
13 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 040.schema.asset.sql
14 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 080.schema.money.sql
15 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 090.schema.action.sql
16
17 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 800.fkeys.sql
18 PGUSER=$3 PGHOST=$1 PGDATABASE=$2 psql -f 900.audit-tables.sql