MySQL current_timestamp default

I’m just starting with Yii, the problem I’m having is that Yii doesn’t seem to recognise that I have default values for the timestamp (eg. created defaulting to current_timestamp) and hence prevents me leaving the field blank. Is there a change I can make to the model to stop this field being compulsory or is setting up a default in the Yii model rather than within the database a better option?


You may just delete your date field from the model as required