Migrating model type field

Hello,

I would like to ask how to migrate model type field from integer to double/decimal/bigint. I have a table ‘X’ which has column ‘c’. I changed type of column ‘c’ from int to bigint in database (PostgreSQL 9.4). Now if I put value greater than MAX_INTEGER into database it automatically convert it to 2147483647. How should I migrate the type of field in Yii Framework. What I tried:

  1. Change column type in comments of model class.
  • @property integer $c-> * @property double $c.
  1. Change validation in rules() of model class.

    array(‘c’, ‘numerical’, ‘integerOnly’=> true) -> array(‘c’, ‘numerical’, ‘integerOnly’=> false)

Both didn’t help me.