update query
This commit is contained in:
@ -43,7 +43,7 @@ async function job() {
|
||||
CREATE TABLE ${tableName} (
|
||||
id bigint NOT NULL AUTO_INCREMENT,
|
||||
original_hex text,
|
||||
protocol enum('gt06','tk119','smartphone') DEFAULT NULL,
|
||||
protocol enum('gt06','tk119','smartphone','teltonika8e','other') DEFAULT NULL,
|
||||
action enum('login','heartbeat','location','alarm','other','teltonika8e') DEFAULT NULL,
|
||||
device_id varchar(16) DEFAULT NULL,
|
||||
latitude double DEFAULT NULL,
|
||||
@ -138,7 +138,7 @@ async function job() {
|
||||
const startOfMonth = histMonth.clone().startOf("month").unix() - TIMEFIX
|
||||
const endOfMonth = histMonth.clone().endOf("month").unix() - TIMEFIX
|
||||
console.log(
|
||||
`Inserting data into history table '${histTableName}' for records from ${startOfMonth} to ${endOfMonth}`
|
||||
`Inserting data into history table '${histTableName}' for records from ${startOfMonth} to ${endOfMonth}`,
|
||||
)
|
||||
|
||||
const q2 = `
|
||||
|
||||
Reference in New Issue
Block a user