schemas_update_schema function

Updates the schema definition