summaryrefslogtreecommitdiffstats
path: root/upgrades/dbpatches/1.3/mysql/1.1/trends.sql
blob: b235e9a70d1f4bbe873cdffbe924ab06e6b43a4f (plain)
1
2
3
4
5
6
7
8
9
CREATE TABLE trends (
  itemid		int(4)		DEFAULT '0' NOT NULL,
  clock			int(4)		DEFAULT '0' NOT NULL,
  num			int(2)		DEFAULT '0' NOT NULL,
  value_min		double(16,4)	DEFAULT '0.0000' NOT NULL,
  value_avg		double(16,4)	DEFAULT '0.0000' NOT NULL,
  value_max		double(16,4)	DEFAULT '0.0000' NOT NULL,
  PRIMARY KEY (itemid,clock)
) type=InnoDB;