I executed the query below
ALTER TABLE `users` CHANGE `phone` `phone` VARCHAR( 20 )
CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT NULL
and result was …
#1067 - Invalid default value for 'phone'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re not allowing it to be null and then setting it to null as a default value.