upgrading pg-promise to 8.4.0 (#4736)
This commit is contained in:
committed by
Florent Vilmart
parent
d48b30c734
commit
a1f5f37af7
@@ -6,22 +6,14 @@ const express = require('express');
|
||||
//public schema
|
||||
const databaseOptions1 = {
|
||||
initOptions: {
|
||||
connect: function (client, dc, isFresh) {
|
||||
if (isFresh) {
|
||||
client.query('SET search_path = public');
|
||||
}
|
||||
}
|
||||
schema: 'public'
|
||||
}
|
||||
};
|
||||
|
||||
//not exists schema
|
||||
const databaseOptions2 = {
|
||||
initOptions: {
|
||||
connect: function (client, dc, isFresh) {
|
||||
if (isFresh) {
|
||||
client.query('SET search_path = not_exists_schema');
|
||||
}
|
||||
}
|
||||
schema: 'not_exists_schema'
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user