From 13caf1d8dd226eaa17d55cca62bca9a948daa357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Barbier?= Date: Fri, 17 May 2013 18:58:45 +0200 Subject: [PATCH] removing unique index on lines(graph_id,alias) otherwise there could be only one line without alias per graph to update an existing database, one should use this query: alter table eagle_tattle.lines drop index graph_id; --- graphite_tattle_schema_alpha.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graphite_tattle_schema_alpha.sql b/graphite_tattle_schema_alpha.sql index 1e646fb..1077fb0 100644 --- a/graphite_tattle_schema_alpha.sql +++ b/graphite_tattle_schema_alpha.sql @@ -90,8 +90,7 @@ CREATE TABLE `lines` ( `target` varchar(1000) NOT NULL DEFAULT '', `alias` varchar(255) DEFAULT NULL, `graph_id` int(11) DEFAULT NULL, - PRIMARY KEY (`line_id`), - UNIQUE KEY `graph_id` (`graph_id`,`alias`) + PRIMARY KEY (`line_id`) ) CHARSET=utf8; CREATE TABLE `subscriptions` (