Skip to content

Commit c8ad47a

Browse files
committed
[FIX] Export event type
Required for importer to work correctly.
1 parent 0d68065 commit c8ad47a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

metadata_writer_sqlite.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
"BootMultiplier INTEGER," \
131131
"Timestamp INTEGER NOT NULL," \
132132
"Sequence INTEGER NOT NULL," \
133+
"EventType INTEGER NOT NULL," \
133134
"DeviceId TEXT NOT NULL," \
134135
"PRIMARY KEY(BootCount,BootMultiplier,Timestamp,Sequence))"
135136

@@ -163,8 +164,8 @@
163164
"VALUES (?,?,?,?,?,?,?,?)"
164165

165166
#define INSERT_REBOOT_EVENT "INSERT INTO RebootEvent(NodeId, BootCount," \
166-
"BootMultiplier, Timestamp, Sequence, DeviceId)"\
167-
"VALUES (?,?,?,?,?,?)"
167+
"BootMultiplier, Timestamp, Sequence, EventType, DeviceId)"\
168+
"VALUES (?,?,?,?,?,16,?)"
168169

169170
#define SELECT_LAST_UPDATE "SELECT HasIp,Connectivity,ConnectionMode,Quality "\
170171
" FROM NetworkUpdates WHERE "\

0 commit comments

Comments
 (0)