Removing enum value fails on foreign key

I'm getting the below error when i try to remove an enum value from the database
Error: P3006

Migration `20240731215417_drop_rqi_enum_val` failed to apply cleanly to the shadow database. 
Error:
db error: ERROR: foreign key constraint "Notification_certificationType_profileId_fkey" cannot be implemented
DETAIL: Key columns "certificationType" and "code" are of incompatible types: "CertificationType" and "CertificationType_new".
   0: sql_schema_connector::validate_migrations
           with namespaces=None
             at schema-engine/connectors/sql-schema-connector/src/lib.rs:312
   1: schema_core::state::DevDiagnostic
             at schema-engine/core/src/state.rs:270
Was this page helpful?