New fix to the migration. Postgresql does not like mixing schema and data change within the same transaction so we commit after the schema changes