PDOException Object ( [message:protected] => SQLSTATE[42000]: Syntax error or access violation: 1171 All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead [string:Exception:private] => [code:protected] => 42000 [file:protected] => /home/amnir/public_html/wap/lib/core/phpDataMapper/Adapter/PDO.php [line:protected] => 233 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/amnir/public_html/wap/lib/core/phpDataMapper/Adapter/PDO.php [line] => 233 [function] => exec [class] => PDO [type] => -> [args] => Array ( [0] => ALTER TABLE `meteo` MODIFY `id` int DEFAULT NULL, MODIFY `datem` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, MODIFY `ville` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, MODIFY `texte_msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL; ) ) [1] => Array ( [file] => /home/amnir/public_html/wap/lib/core/phpDataMapper/Adapter/PDO.php [line] => 149 [function] => migrateTableUpdate [class] => phpDataMapper_Adapter_PDO [type] => -> [args] => Array ( [0] => meteo [1] => Array ( ) ) ) [2] => Array ( [file] => /home/amnir/public_html/wap/lib/core/phpDataMapper/Base.php [line] => 726 [function] => migrate [class] => phpDataMapper_Adapter_PDO [type] => -> [args] => Array ( [0] => meteo [1] => Array ( [id] => Array ( [type] => int [default] => [length] => [required] => [null] => 1 [unsigned] => [primary] => 1 [index] => [unique] => [serial] => [relation] => ) [ville] => Array ( [type] => string [default] => [length] => [required] => [null] => 1 [unsigned] => [primary] => [index] => [unique] => [serial] => [relation] => ) [datem] => Array ( [type] => string [default] => [length] => [required] => [null] => 1 [unsigned] => [primary] => [index] => [unique] => [serial] => [relation] => ) [texte_msg] => Array ( [type] => string [default] => [length] => [required] => [null] => 1 [unsigned] => [primary] => [index] => [unique] => [serial] => [relation] => ) ) ) ) [3] => Array ( [file] => /home/amnir/public_html/wap/actions/meteo.module.php [line] => 58 [function] => migrate [class] => phpDataMapper_Base [type] => -> [args] => Array ( ) ) [4] => Array ( [file] => /home/amnir/public_html/wap/index.php [line] => 100 [function] => list_action_arabe [class] => meteoMultiActionController [type] => -> [args] => Array ( ) ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => 42000 [1] => 1171 [2] => All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead ) )