From 3d1abc8dcfd48ddbb4887bbddf85dd7e0ead8932 Mon Sep 17 00:00:00 2001 From: Marc Nijdam Date: Wed, 15 Jun 2022 08:02:04 -0700 Subject: [PATCH] operation_mode boolean --- migrations/3_cell_heartbeat.sql | 2 +- src/heartbeat.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/3_cell_heartbeat.sql b/migrations/3_cell_heartbeat.sql index f7e7467c5..23b761d99 100644 --- a/migrations/3_cell_heartbeat.sql +++ b/migrations/3_cell_heartbeat.sql @@ -7,7 +7,7 @@ create table cell_heartbeat ( timestamp timestamptz not null, lon float, lat float, - operation_mode text, + operation_mode boolean, cbsd_category text, created_at timestamptz default now() diff --git a/src/heartbeat.rs b/src/heartbeat.rs index 6126bbbb8..91b712750 100644 --- a/src/heartbeat.rs +++ b/src/heartbeat.rs @@ -18,7 +18,7 @@ pub struct CellHeartbeat { pub lon: f64, #[serde(alias = "latitude")] pub lat: f64, - pub operation_mode: String, + pub operation_mode: bool, pub cbsd_category: String, #[serde(skip_deserializing)]