feat(driver): set float precision

This commit is contained in:
fengzero
2022-08-10 09:42:50 +00:00
parent dca1447df4
commit 7f9d4cd84c
27 changed files with 182 additions and 67 deletions
+1
View File
@@ -56,6 +56,7 @@ CREATE TABLE IF NOT EXISTS
name NOT NULL UNIQUE check(length(name) <= 32),
address NOT NULL check(length(address) <= 64),
attribute INTEGER NOT NULL check(attribute BETWEEN 0 AND 7),
precision INTEGER NOT NULL check(precision BETWEEN 0 AND 17),
type INTEGER NOT NULL check(type BETWEEN 0 AND 15),
description NOT NULL check(length(description) <= 128),
UNIQUE (driver_name, group_name, name),
@@ -29,6 +29,7 @@ CREATE TABLE
name NOT NULL check(length(name) <= 32),
address NOT NULL check(length(address) <= 64),
attribute INTEGER NOT NULL check(attribute BETWEEN 0 AND 7),
precision INTEGER NOT NULL check(precision BETWEEN 0 AND 17),
TYPE INTEGER NOT NULL check(TYPE BETWEEN 0 AND 15),
description NOT NULL check(length(description) <= 128),
UNIQUE (driver_name, group_name, name),