new(kb.gblib): added postgres.
This commit is contained in:
parent
632010310b
commit
4298303ea4
1 changed files with 18 additions and 10 deletions
|
@ -289,6 +289,14 @@ export class GBVMService extends GBService {
|
|||
acquire: acquire
|
||||
},
|
||||
define: {
|
||||
// Disable timestamps globally
|
||||
timestamps: false,
|
||||
// Prevent createdAt/updatedAt from being selected
|
||||
defaultScope: {
|
||||
attributes: {
|
||||
exclude: ['createdAt', 'updatedAt']
|
||||
}
|
||||
},
|
||||
// Convert all table names to lowercase
|
||||
freezeTableName: true,
|
||||
hooks: {
|
||||
|
@ -427,7 +435,7 @@ export class GBVMService extends GBService {
|
|||
const shouldSync = min.core.getParam<boolean>(min.instance, 'Synchronize Database', false);
|
||||
|
||||
tableDef.forEach(async t => {
|
||||
const tableName = t.name.trim().toLowerCase ();
|
||||
const tableName = t.name.trim().toLowerCase();
|
||||
|
||||
// Determines autorelationship.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue