Browse Source

correction des scripts de création

Damien Pacaud 12 years ago
parent
commit
4fe881cf66
2 changed files with 4 additions and 4 deletions
  1. 2 2
      tables/counters_statistics.sql
  2. 2 2
      tables/gauges_statistics.sql

+ 2 - 2
tables/counters_statistics.sql

@@ -1,8 +1,8 @@
 -- Stadard DELIMITER is $$
 
 -- Counters statistics table
-CREATE  TABLE `statsd_db`.`counters_statistics` (
+CREATE  TABLE `counters_statistics` (
     `timestamp` BIGINT NOT NULL ,
     `name` VARCHAR(255) NOT NULL ,
     `value` INT(11) NOT NULL ,
-PRIMARY KEY (`timestamp`) )$$
+PRIMARY KEY (`timestamp`,`name`) )$$

+ 2 - 2
tables/gauges_statistics.sql

@@ -1,8 +1,8 @@
 -- Stadard DELIMITER is $$
 
 -- Counters statistics table
-CREATE  TABLE `statsd_db`.`gauges_statistics` (
+CREATE  TABLE `gauges_statistics` (
     `timestamp` BIGINT NOT NULL ,
     `name` VARCHAR(255) NOT NULL ,
     `value` INT(11) NOT NULL ,
-PRIMARY KEY (`timestamp`) )$$
+PRIMARY KEY (`timestamp`,`name`) )$$