diff --git a/orcid-persistence/src/main/resources/db/updates/add_generated_by_script_column_to_profile_email_domain.xml b/orcid-persistence/src/main/resources/db/updates/add_generated_by_script_column_to_profile_email_domain.xml index 546eab3e6f..5c4bda80a8 100644 --- a/orcid-persistence/src/main/resources/db/updates/add_generated_by_script_column_to_profile_email_domain.xml +++ b/orcid-persistence/src/main/resources/db/updates/add_generated_by_script_column_to_profile_email_domain.xml @@ -12,8 +12,11 @@ - - UPDATE profile_email_domain SET generated_by_script = true WHERE date_created < '2024-10-28'; - + UPDATE profile_email_domain SET generated_by_script = true WHERE date_created < '2024-10-28'; + + + UPDATE profile_email_domain SET generated_by_script = false WHERE generated_by_script is null; + +