Add 'status' field to scada_model
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
create type scada_type as enum ('PRESSURE', 'DEMAND', 'QUALITY', 'LEVEL', 'FLOW');
|
||||
create type scada_status as enum ('OFF', 'ON');
|
||||
|
||||
create table scada_model
|
||||
(
|
||||
@@ -10,4 +11,5 @@ create table scada_model
|
||||
, address text
|
||||
, type scada_type
|
||||
, model_id varchar(32) -- add constraint in API
|
||||
, status scada_status not null default 'OFF'
|
||||
);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
drop table if exists scada_model;
|
||||
|
||||
drop type if exists scada_status;
|
||||
|
||||
drop type if exists scada_type;
|
||||
|
||||
Reference in New Issue
Block a user