Fixes issue affecting deleting multiple fields of a Schema (#3735)

This commit is contained in:
Paulo Vítor S Reis
2017-04-23 18:22:55 -03:00
committed by Florent Vilmart
parent 2a5c20376a
commit 5e14147676
3 changed files with 85 additions and 24 deletions

View File

@@ -623,7 +623,7 @@ export class PostgresStorageAdapter {
const values = [className, ...fieldNames];
const columns = fieldNames.map((name, idx) => {
return `$${idx + 2}:name`;
}).join(',');
}).join(', DROP COLUMN');
const doBatch = (t) => {
const batch = [