upgrading pg-promise to 8.4.0 (#4736)

This commit is contained in:
Vitaly Tomilov
2018-05-01 18:27:29 +01:00
committed by Florent Vilmart
parent d48b30c734
commit a1f5f37af7
2 changed files with 3 additions and 11 deletions

View File

@@ -34,7 +34,7 @@
"mongodb": "3.0.7", "mongodb": "3.0.7",
"multer": "1.3.0", "multer": "1.3.0",
"parse": "1.11.1", "parse": "1.11.1",
"pg-promise": "8.2.1", "pg-promise": "8.4.0",
"redis": "2.8.0", "redis": "2.8.0",
"request": "2.83.0", "request": "2.83.0",
"semver": "5.5.0", "semver": "5.5.0",

View File

@@ -6,22 +6,14 @@ const express = require('express');
//public schema //public schema
const databaseOptions1 = { const databaseOptions1 = {
initOptions: { initOptions: {
connect: function (client, dc, isFresh) { schema: 'public'
if (isFresh) {
client.query('SET search_path = public');
}
}
} }
}; };
//not exists schema //not exists schema
const databaseOptions2 = { const databaseOptions2 = {
initOptions: { initOptions: {
connect: function (client, dc, isFresh) { schema: 'not_exists_schema'
if (isFresh) {
client.query('SET search_path = not_exists_schema');
}
}
} }
}; };