-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discover unique indexes #133
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, mystery solved
src/sqlite/def/schema.rs
Outdated
@@ -5,3 +5,16 @@ pub struct Schema { | |||
pub tables: Vec<TableDef>, | |||
pub indexes: Vec<IndexInfo>, | |||
} | |||
|
|||
impl Schema { | |||
pub fn collect_unique_indexes(mut self) -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge_indexes_into_table?
🎉 Released In 0.15.0 🎉Thank you everyone for the contribution! |
PR Info
has_one
relation for foreign key of unique index / constraint sea-orm#2254Bug Fixes