Function metadata.Build checks if the schema is new or has been updated