new(kb.gblib): added postgres.
This commit is contained in:
parent
ded9026e91
commit
d3ae8dd487
1 changed files with 10 additions and 0 deletions
|
@ -300,6 +300,16 @@ export class GBVMService extends GBService {
|
||||||
// Convert all table names to lowercase
|
// Convert all table names to lowercase
|
||||||
freezeTableName: true,
|
freezeTableName: true,
|
||||||
hooks: {
|
hooks: {
|
||||||
|
beforeSave: (options) => {
|
||||||
|
if (options.where) {
|
||||||
|
options.where = toLowerCase(options.where);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
beforeDestroy: (options) => {
|
||||||
|
if (options.where) {
|
||||||
|
options.where = toLowerCase(options.where);
|
||||||
|
}
|
||||||
|
},
|
||||||
beforeFind: (options) => {
|
beforeFind: (options) => {
|
||||||
if (options.where) {
|
if (options.where) {
|
||||||
options.where = toLowerCase(options.where);
|
options.where = toLowerCase(options.where);
|
||||||
|
|
Loading…
Add table
Reference in a new issue