Transformations do not have an explicit database to connect to.
Showing
1 changed file
with
2 additions
and
4 deletions
... | @@ -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" | ... | ... |
-
Please register or sign in to post a comment