getting an error - had some elements with id’s set...
# orm-help
d
getting an error - had some elements with id’s set to varchar(3) and I changed them to varchar(4) and now I’m getting this:
Copy code
Error: P3006

Migration `20220913013923_expanded_abbr_size` failed to apply cleanly to the shadow database. 
Error:
db error: ERROR: cannot drop constraint edu_pkey on table edu because other objects depend on it
DETAIL: constraint person_edu_abbr_fkey on table person_edu depends on index edu_pkey
HINT: Use DROP ... CASCADE to drop the dependent objects too.
   0: sql_migration_connector::validate_migrations
             at migration-engine/connectors/sql-migration-connector/src/lib.rs:272
   1: migration_core::state::DevDiagnostic
             at migration-engine/core/src/state.rs:250
👀 1
v
👋 Hello @Dave Edelhart, I wanted to check if you've had a chance to create a GitHub Issue yet? Please let us know if you're still getting this error!
d
I kind of “nuked” my whole migration stack to get around this issue. I fixed it for me, but its still potentially a problem in the code base