Manual:$wgExtPGAlteredFields

Details
Used to alter the data type of a column in an existing table.

Used for Postgres tables only.

The final rule is optional and only needed if Postgres cannot convert the types automatically.