stdout stderr ouputs
This commit is contained in:
parent
abfb6620fc
commit
6ecc7ddbbb
1 changed files with 2 additions and 2 deletions
|
|
@ -17,13 +17,13 @@ function migrate() {
|
|||
IFS=',' read -r -a migration_versions <<< "$1"
|
||||
for version in ${migration_versions[*]}; do
|
||||
echo "Migrating postgresql version $version"
|
||||
psql -f ${pgdir}/${version}/${version}.sql
|
||||
psql -f ${pgdir}/${version}/${version}.sql 2>&1
|
||||
done
|
||||
}
|
||||
|
||||
function init() {
|
||||
echo "Initializing postgresql"
|
||||
psql -f ${pgdir}/init_schema.sql
|
||||
psql -f ${pgdir}/init_schema.sql 2>&1
|
||||
}
|
||||
|
||||
# /bin/bash postgresql.sh migrate $migration_versions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue