Skip to content

Commit 619e516

Browse files
committed
Update device-profile schema.
This reflects the changes related to the device-profile templates (which added a description field to the device-profile) and metrics feature, which added a measurements column.
1 parent 8dec666 commit 619e516

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

main.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ function encodeDownlink(input) {
579579
created_at,
580580
updated_at,
581581
name,
582+
description,
582583
region,
583584
mac_version,
584585
reg_params_revision,
@@ -600,13 +601,15 @@ function encodeDownlink(input) {
600601
abp_rx2_freq,
601602
tags,
602603
device_status_req_interval,
603-
flush_queue_on_activate
604-
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27)`,
604+
flush_queue_on_activate,
605+
measurements
606+
) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29)`,
605607
nsDP.ID,
606608
intToUUID(asDP.OrganizationID),
607609
asDP.CreatedAt,
608610
asDP.UpdatedAt,
609611
asDP.Name,
612+
"",
610613
nsDP.RFRegion,
611614
nsDP.MACVersion,
612615
nsDP.RegParamsRevision,
@@ -629,6 +632,7 @@ function encodeDownlink(input) {
629632
hstoreToJSON(asDP.Tags),
630633
1,
631634
true,
635+
"{}",
632636
)
633637
if err != nil {
634638
panic(err)

0 commit comments

Comments
 (0)