[db] set default values for var_types addresses

This commit is contained in:
Maxime Alves LIRMM@home 2020-07-27 00:35:24 +02:00
commit 8e917d4892

View file

@ -31,9 +31,9 @@ CREATE TABLE IF NOT EXISTS var_value (
PRIMARY KEY(type, address, time)
);
INSERT INTO var_type (slabel, label, type) VALUES (
'A', 'Analog', 'float');
INSERT INTO var_type (slabel, label, type) VALUES (
'I', 'Integer', 'int');
INSERT INTO var_type (slabel, label, type) VALUES (
'D', 'Digital', 'boolean');
INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
'A', 'Analog', 'float', 1, 500);
INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
'I', 'Integer', 'int', 5002, 6252);
INSERT INTO var_type (slabel, label, type, start_address, end_address) VALUES (
'D', 'Digital', 'boolean', 1, 1000);