Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion db/migrationUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down
1 change: 1 addition & 0 deletions migrations/20180415203559-addUtahTrails.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ exports.up = function(db, next) {
})}
`, (err) => {
if (err) console.log(err);
console.log("done with utah")
next();
});
};
Expand Down
1 change: 1 addition & 0 deletions migrations/20180416235612-addWashingtonTrails.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ exports.up = function(db, next) {
})}
`, (err) => {
if (err) console.log(err);
console.log("done with washington")
next();
})
};
Expand Down