-
-
Notifications
You must be signed in to change notification settings - Fork 678
Open
Description
Description
After removing unique constraint on a column and on the next schema sync to Postgres, I get cannot drop index test_user_id_key because constraint test_user_id_key on table orders requires it from sea-orm running DROP INDEX "test_user_id_key"
This works for SQLite though
Steps to Reproduce
- Add
#[sea_orm(unique)]to a column, and run schema sync - Remove
#[sea_orm(unique)]and run again
Expected Behavior
unique constraint removed
Actual Behavior
Schema sync failed
Reproduces How Often
Always
Workarounds
Drop the constraint manually
Versions
2.0.0-rc.37
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels