Skip to content

Commit

Permalink
removing unique index on lines(graph_id,alias)
Browse files Browse the repository at this point in the history
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;
  • Loading branch information
g76r committed May 17, 2013
1 parent 48310f6 commit 13caf1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions graphite_tattle_schema_alpha.sql
Expand Up @@ -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` (
Expand Down

0 comments on commit 13caf1d

Please sign in to comment.