Fixes small mistakes.
authorStéphane Jacob <jacou@melix.net>
Sun, 29 Mar 2009 14:33:47 +0000 (16:33 +0200)
committerStéphane Jacob <jacou@melix.net>
Sun, 29 Mar 2009 14:33:47 +0000 (16:33 +0200)
upgrade/newdirectory-0.0.1/12_secteurs.sql
upgrade/newdirectory-0.0.1/alternate_subsubsectors.php

index 67c9bdd..799870c 100644 (file)
@@ -24,7 +24,7 @@ CREATE TABLE IF NOT EXISTS profile_job_subsubsector_enum (
   sectorid TINYINT(2) UNSIGNED NOT NULL,
   subsectorid TINYINT(3) UNSIGNED NOT NULL,
   name VARCHAR(256) NOT NULL DEFAULT '',
-  flags ENUM('display') NOT NULL DEFAULT 'display',
+  flags SET('display') NOT NULL DEFAULT 'display',
   PRIMARY KEY(id)
 ) CHARSET=utf8;
 
index fc6b856..e94dadd 100755 (executable)
@@ -16,7 +16,7 @@ foreach ($values as $val) {
     if ($val['tag'] == 'grand-domaine' && $val['type'] == 'open') {
         $res = XDB::execute('INSERT INTO  profile_job_sector_enum (name)
                                   VALUES  ({?})',
-                            ucfirst(strtolower($val['attributes']['intitule'])));
+                            ucfirst(mb_strtolower($val['attributes']['intitule'])));
         $sectorid = XDB::insertId();
     }
     if ($val['tag'] == 'domaine' && $val['type'] == 'open') {