diff --git a/db/migrationUtils.js b/db/migrationUtils.js index f0ca56c..6b8f672 100644 --- a/db/migrationUtils.js +++ b/db/migrationUtils.js @@ -32,9 +32,11 @@ exports.insertElevationRasters = function( execSync( `raster2pgsql -s ${srid} -t "auto" -C *.tif public.${tableName} | psql -d ${databaseName} ${user}`, - { cwd: pathStr } + { cwd: pathStr, maxBuffer: 1024 * 4096 } // Value for maxBuffer must be increment of 1024 ); + console.log("done with rasters") + if (cb) cb(); }; diff --git a/migrations/20180415203559-addUtahTrails.js b/migrations/20180415203559-addUtahTrails.js index 72fe0fd..1f60ab4 100644 --- a/migrations/20180415203559-addUtahTrails.js +++ b/migrations/20180415203559-addUtahTrails.js @@ -46,6 +46,7 @@ exports.up = function(db, next) { })} `, (err) => { if (err) console.log(err); + console.log("done with utah") next(); }); }; diff --git a/migrations/20180416235612-addWashingtonTrails.js b/migrations/20180416235612-addWashingtonTrails.js index 6fe5c88..1d382ff 100644 --- a/migrations/20180416235612-addWashingtonTrails.js +++ b/migrations/20180416235612-addWashingtonTrails.js @@ -49,6 +49,7 @@ exports.up = function(db, next) { })} `, (err) => { if (err) console.log(err); + console.log("done with washington") next(); }) };