diff options
Diffstat (limited to 'create/postgresql/schema.sql')
| -rw-r--r-- | create/postgresql/schema.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql index 0dfed834..90b70c5c 100644 --- a/create/postgresql/schema.sql +++ b/create/postgresql/schema.sql @@ -34,9 +34,9 @@ CREATE TABLE items ( history int4 DEFAULT '0' NOT NULL, lastdelete int4 DEFAULT '0' NOT NULL, nextcheck int4 DEFAULT '0' NOT NULL, - lastvalue float8 DEFAULT NULL, + lastvalue varchar(255) DEFAULT NULL, lastclock int4 DEFAULT NULL, - prevvalue float8 DEFAULT NULL, + prevvalue varchar(255) DEFAULT NULL, status int4 DEFAULT '0' NOT NULL, PRIMARY KEY (itemid), FOREIGN KEY (hostid) REFERENCES hosts @@ -180,7 +180,7 @@ CREATE TABLE functions ( functionid serial, itemid int4 DEFAULT '0' NOT NULL, triggerid int4 DEFAULT '0' NOT NULL, - lastvalue float8 DEFAULT '0.0000' NOT NULL, + lastvalue varchar(255) DEFAULT '0.0000' NOT NULL, function varchar(10) DEFAULT '' NOT NULL, parameter int4 DEFAULT '0' NOT NULL, PRIMARY KEY (functionid), |
