Cdbmigration's Refreshtableschema Not Sufficient

When doing a migration, a call to CDbMigration->refreshTableSchema is not sufficient, the model also needs a ‘refreshMetaData’.

This is require if one wants to do an operation on a new column for instance.





        $this->addColumn(Planning::model()->tableName(),'example','int'));


        $this->refreshTableSchema(Planning::model()->tableName());

        Planning::model()->refreshMetaData();

        Planning::model()->updateAll(array('example'=>1));

Possibly the informed reader has an idea on how to do this in ‘refreshTableSchema’ instead.