fa20c6e6 by Adam Heath

Transformations do not have an explicit database to connect to.

1 parent d89bc60b
...@@ -16,12 +16,10 @@ for file in /workspace/transformations/*; do ...@@ -16,12 +16,10 @@ for file in /workspace/transformations/*; do
16 [[ -e $file ]] || continue 16 [[ -e $file ]] || continue
17 case "$file" in 17 case "$file" in
18 (*.sql.gz) 18 (*.sql.gz)
19 database="$(basename "$file" .sql.gz)" 19 zcat "$file" | _import postgres
20 zcat "$file" | _import "$database"
21 ;; 20 ;;
22 (*.sql) 21 (*.sql)
23 database="$(basename "$file" .sql)" 22 cat "$file" | _import postgres
24 cat "$file" | _import "$database"
25 ;; 23 ;;
26 (*.sh) 24 (*.sh)
27 "$file" 25 "$file"
......