From: Stéphane Jacob Date: Mon, 16 May 2011 19:49:36 +0000 (+0200) Subject: Not unique key after all... X-Git-Tag: xorg/1.1.2~62^2~18 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=710a2ffc14074394786b67e2f614c4d84e5caa19;p=platal.git Not unique key after all... Signed-off-by: Stéphane Jacob --- diff --git a/upgrade/1.1.2/01_geocoding.sql b/upgrade/1.1.2/01_geocoding.sql index 051ff08..edae184 100644 --- a/upgrade/1.1.2/01_geocoding.sql +++ b/upgrade/1.1.2/01_geocoding.sql @@ -7,7 +7,7 @@ CREATE TABLE profile_addresses_components_enum ( long_name VARCHAR(255) NOT NULL DEFAULT '', types SET('street_address', 'route', 'intersection', 'political', 'country', 'administrative_area_level_1', 'administrative_area_level_2', 'administrative_area_level_3', 'colloquial_area', 'locality', 'sublocality', 'neighborhood', 'premise', 'subpremise', 'postal_code', 'natural_feature', 'airport', 'park', 'point_of_interest', 'post_box', 'street_number', 'floor', 'room') NOT NULL DEFAULT '', PRIMARY KEY (id), - UNIQUE KEY (types, long_name), + KEY (types, long_name), KEY (types, short_name) ) ENGINE=InnoDB, CHARSET=utf8;