Rewrite files in case the schema is changed.