-
Notifications
You must be signed in to change notification settings - Fork 21
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
UUID support (primary keys with default value and crypto extension) #187
Comments
I can't tell Is there something your application is trying to achieve that it is not possible when using CM? |
It's failing to insert into the table, it's saying the PK that is being inserted (NEW.id) is null. |
I also don't understand what you meant by "I can't tell", the line I linked to skips adding default values to the PK column in the VIEW. |
Can I have a reproducible test case?
Sorry, not a native English speaker. I can't tell exactly why it is being excluded. My guess is that primary key are often automatically generated and for all our use cases it is fine |
You can clone this, populate the database.yml, run db setup, and run the rspec. You'll see the error |
https://github.com/eraffel-MDSol/chrono-issue-reproduction |
Looks like there's maybe not support for a uuid PK? |
Oh, yes, this could be the reason. I've recently implemented support for string IDs #156, but we do not use UUIDs We are interested in supporting UUID, but at the moment this feature is out of scope. Feel free to take a look and propose a PR with test coverage |
I opened #188 Sorry, keep switching between work and personal account |
Thanks, it looks good, I would like to test it a little bit more before merging |
Why is the PK excluded when setting default values on the columns of the views?
chronomodel/lib/chrono_model/adapter/ddl.rb
Line 33 in b00d08c
The text was updated successfully, but these errors were encountered: