-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix #263 upsert attributes should use defaultValue while there i… (
#265) * fix: fix #263 upsert attributes should use defaultValue while there is no value assigned * fix: typo and upsert value validating Co-authored-by: JimmyDaddy <[email protected]>
- Loading branch information
1 parent
77f47b9
commit 7b6bf3d
Showing
9 changed files
with
84 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use strict'; | ||
|
||
const AGGREGATOR_MAP = { | ||
count: 'count', | ||
average: 'avg', | ||
minimum: 'min', | ||
maximum: 'max', | ||
sum: 'sum' | ||
}; | ||
|
||
const LEGACY_TIMESTAMP_MAP = { | ||
gmtCreate: 'createdAt', | ||
gmtModified: 'updatedAt', | ||
gmtDeleted: 'deletedAt', | ||
}; | ||
|
||
const LEGACY_TIMESTAMP_COLUMN_MAP = { | ||
created_at: 'gmt_create', | ||
updated_at: 'gmt_modified', | ||
deleted_at: 'gmt_deleted', | ||
}; | ||
|
||
const TIMESTAMP_NAMES = [ 'createdAt', 'updatedAt', 'deletedAt' ]; | ||
|
||
module.exports = { | ||
AGGREGATOR_MAP, | ||
LEGACY_TIMESTAMP_MAP, | ||
TIMESTAMP_NAMES, | ||
LEGACY_TIMESTAMP_COLUMN_MAP | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters