From 9e72b5891722515c412978f70c7a65102dc72104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20P=C3=A9rez?= Date: Thu, 9 Oct 2025 05:34:13 +0200 Subject: [PATCH] fix database schema --- app/database/001_sensors.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/database/001_sensors.up.sql b/app/database/001_sensors.up.sql index f4a4203..cd8054b 100644 --- a/app/database/001_sensors.up.sql +++ b/app/database/001_sensors.up.sql @@ -25,7 +25,7 @@ create index idx_sensors_sensor_id on sensors (sensor_id); create table registry ( - sensor_id int not null references sensors (id), + sensor_id varchar(255) not null references sensors (sensor_id), value float not null, created_at timestamp not null default now()