schema changes

This commit is contained in:
Wolfgang Hottgenroth 2023-01-30 21:39:34 +01:00
parent dea278bf03
commit 69e8a507aa
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -33,10 +33,6 @@ insert into sensor_t (address, label, index, device)
(10664523975231507496, '3,0m ', 2, 1), (10664523975231507496, '3,0m ', 2, 1),
(15276209993662477608, '4,0m ', 3, 1); (15276209993662477608, '4,0m ', 3, 1);
select d.label as device_label, create user preprocessor password 'geheim';
s.label as label, grant select on device_t, sensor_t to preprocessor;
s.address as address, grant insert on measurement_t to preprocessor;
s.index as index
from device_t d, sensor_t s
where d.id = s.device;