Skip to content
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

RevEng: Sqlite: Indexes for PK are scaffolded wrongly #3642

Closed
smitpatel opened this issue Nov 3, 2015 · 2 comments
Closed

RevEng: Sqlite: Indexes for PK are scaffolded wrongly #3642

smitpatel opened this issue Nov 3, 2015 · 2 comments

Comments

@smitpatel
Copy link
Contributor

For SQLite, we are scaffolding indexes which are defined on PK properties. If there is no unique keyword in index then we scaffold unique=false for index. According to #700 , key's uniqueness will be based on the underlying index object. This causes bug if the PK is used as FK for relationship. Effectively making FK non-unique even though its unique.

@rowanmiller
Copy link
Contributor

Created a task to look at the all-up design around indexes (and listed this as an item that needs attention).

@smitpatel
Copy link
Contributor Author

Included fix in #3714

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
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

No branches or pull requests

3 participants