diff options
Diffstat (limited to 'create/postgresql/schema.sql')
| -rw-r--r-- | create/postgresql/schema.sql | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql index 4d4d915b..ab05ea70 100644 --- a/create/postgresql/schema.sql +++ b/create/postgresql/schema.sql @@ -324,6 +324,20 @@ CREATE TABLE history ( CREATE INDEX history_i_c on history (itemid, clock); -- +-- Table structure for table 'history_uint' +-- + +CREATE TABLE history_uint ( + itemid int4 DEFAULT '0' NOT NULL, + clock int4 DEFAULT '0' NOT NULL, + value double precision DEFAULT '0' NOT NULL, +-- PRIMARY KEY (itemid,clock), + FOREIGN KEY (itemid) REFERENCES items +); + +CREATE INDEX history_uint_i_c on history_uint (itemid, clock); + +-- -- Table structure for table 'history_str' -- |
