Skip to content

fix: delete_by_* for unique keys with 1 column#3059

Open
sefidel wants to merge 1 commit intoSeaQL:masterfrom
sefidel:delete_by_one_unique_key
Open

fix: delete_by_* for unique keys with 1 column#3059
sefidel wants to merge 1 commit intoSeaQL:masterfrom
sefidel:delete_by_one_unique_key

Conversation

@sefidel
Copy link
Copy Markdown

@sefidel sefidel commented May 7, 2026

PR Info

Fixes the issue where the documentation specifies usage of delete_by_* with one-column unique keys, but sea-orm-macros only generated them for unique keys where columns > 1.

Bug Fixes

  • Generate delete_by_* functions for unique keys with one column

p.s. Should we have a test case for delete_by_* functions in tests/active_model_ex_tests.rs?

@Huliiiiii Huliiiiii requested a review from tyt2y3 May 8, 2026 00:31
@Huliiiiii
Copy link
Copy Markdown
Member

Yes, we should add a test.

@tyt2y3 Why did we skip the case where column len = 1 at first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants