Migrations to fix type with ptype