updated schema for entity_changes table

This commit is contained in:
zadam
2020-08-09 22:44:53 +02:00
parent 02cc52af66
commit e663d7da1b
6 changed files with 203 additions and 181 deletions

View File

@@ -10,7 +10,7 @@ function insertEntityChange(entityName, entityId, sourceId = null, isSynced = tr
const entityChange = {
entityName: entityName,
entityId: entityId,
utcSyncDate: dateUtils.utcNowDateTime(),
utcChangedDate: dateUtils.utcNowDateTime(),
sourceId: sourceId || cls.getSourceId() || sourceIdService.getCurrentSourceId(),
isSynced: isSynced ? 1 : 0
};
@@ -78,7 +78,7 @@ function fillEntityChanges(entityName, entityPrimaryKey, condition = '') {
entityName: entityName,
entityId: entityId,
sourceId: "SYNC_FILL",
utcSyncDate: dateUtils.utcNowDateTime(),
utcChangedDate: dateUtils.utcNowDateTime(),
isSynced: 1
});
}