Skip to content

Commit a674ac2

Browse files
vitaly-tflovilmart
authored andcommitted
upgrading pg-promise to 8.4.0 (parse-community#4736)
1 parent 5a125c8 commit a674ac2

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"mongodb": "3.0.7",
3535
"multer": "1.3.0",
3636
"parse": "1.11.1",
37-
"pg-promise": "8.2.1",
37+
"pg-promise": "8.4.0",
3838
"redis": "2.8.0",
3939
"request": "2.83.0",
4040
"semver": "5.5.0",

spec/PostgresInitOptions.spec.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,14 @@ const express = require('express');
66
//public schema
77
const databaseOptions1 = {
88
initOptions: {
9-
connect: function (client, dc, isFresh) {
10-
if (isFresh) {
11-
client.query('SET search_path = public');
12-
}
13-
}
9+
schema: 'public'
1410
}
1511
};
1612

1713
//not exists schema
1814
const databaseOptions2 = {
1915
initOptions: {
20-
connect: function (client, dc, isFresh) {
21-
if (isFresh) {
22-
client.query('SET search_path = not_exists_schema');
23-
}
24-
}
16+
schema: 'not_exists_schema'
2517
}
2618
};
2719

0 commit comments

Comments
 (0)