X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=upgrade%2Fnewdirectory-0.0.1%2F15_addresses.sql;h=8a95d0a3e192bf2fe08ec2cbea29c89e201501a2;hb=950bf4f677e923c34f7d1523215f06876e338717;hp=2311f472d9b2aa890a400762e62e2da0b146c7b0;hpb=353f2d2b11c4e3c6c0bc3553813368b6f42fa9c6;p=platal.git diff --git a/upgrade/newdirectory-0.0.1/15_addresses.sql b/upgrade/newdirectory-0.0.1/15_addresses.sql index 2311f47..8a95d0a 100644 --- a/upgrade/newdirectory-0.0.1/15_addresses.sql +++ b/upgrade/newdirectory-0.0.1/15_addresses.sql @@ -32,7 +32,7 @@ CREATE TABLE IF NOT EXISTS profile_addresses ( INDEX administrativeAreaId (administrativeAreaId), INDEX subAdministrativeAreaId (subAdministrativeAreaId), INDEX countryId (countryId) -) CHARSET=utf8; +) ENGINE=InnoDB, CHARSET=utf8; INSERT INTO profile_addresses (pid, id, postalCode, updateTime, pub, comment, latitude, longitude, countryId, type, flags) @@ -42,7 +42,7 @@ INSERT INTO profile_addresses (pid, id, postalCode, updateTime, pub, comment, l IF(FIND_IN_SET('courrier', 'statut'), 'mail,', ''), IF(FIND_IN_SET('active', 'statut'), 'current,', ''), IF(FIND_IN_SET('temporaire', 'statut'), 'temporary', '')) - FROM adresses; + FROM #x4dat#.adresses; CREATE TABLE IF NOT EXISTS geoloc_countries ( iso_3166_1_a2 CHAR(2) NOT NULL, @@ -63,7 +63,7 @@ CREATE TABLE IF NOT EXISTS geoloc_countries ( UNIQUE KEY(iso_3166_1_num), INDEX(iso_3166_1_a2), INDEX(phonePrefix) -) CHARSET=utf8; +) ENGINE=InnoDB, CHARSET=utf8; UPDATE geoloc_pays SET n3 = 450 @@ -78,6 +78,7 @@ INSERT INTO geoloc_countries (iso_3166_1_a2, iso_3166_1_a3, iso_3166_1_num, wor phonePrefix, phoneFormat, licensePlate) SELECT a2, a3, n3, worldrgn, pays, country, capital, nat, phoneprf, phoneformat, license_plate FROM geoloc_pays; +DROP TABLE geoloc_pays; CREATE TABLE IF NOT EXISTS geoloc_administrativeareas ( id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, @@ -88,7 +89,7 @@ CREATE TABLE IF NOT EXISTS geoloc_administrativeareas ( INDEX(id), INDEX(name), INDEX(country) -) CHARSET=utf8; +) ENGINE=InnoDB, CHARSET=utf8; CREATE TABLE IF NOT EXISTS geoloc_subadministrativeareas ( id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, @@ -99,7 +100,7 @@ CREATE TABLE IF NOT EXISTS geoloc_subadministrativeareas ( INDEX(id), INDEX(name), INDEX(country) -) CHARSET=utf8; +) ENGINE=InnoDB, CHARSET=utf8; CREATE TABLE IF NOT EXISTS geoloc_localities ( id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, @@ -110,6 +111,6 @@ CREATE TABLE IF NOT EXISTS geoloc_localities ( INDEX(id), INDEX(name), INDEX(country) -) CHARSET=utf8; +) ENGINE=InnoDB, CHARSET=utf8; -- vim:set syntax=mysql: