- Notifications
You must be signed in to change notification settings - Fork 182
Allow non-id serial properties #198
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
Conversation
Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test." |
Can one of the admins verify this patch? |
2 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
@zbarbuto could you please add some unit tests to go with your PR? |
@zbarbuto Any updates on adding unit tests with this patch? |
Yes. Hope to look at this soon. |
Looking at this now. |
a9b0dad
to be13ad5
Compare @ssh24 Test added and rebased off master. Sorry for the delay. |
be13ad5
to aa27031
Compare @slnode test please |
aa27031
to 62d146f
Compare @slnode test please |
test/postgresql.test.js Outdated
}, | ||
}; | ||
var models = db.modelBuilder.buildModels(schema); | ||
// console.log(models); |
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.
Please remove the uncommented code.
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.
Done
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.
@zbarbuto Thank you for the contribution. Code LGTM. Please remove the uncommented code
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.
LGTM. PR is ready to land. @zbarbuto Thank you for your patience for holding onto the PR for long and thank you again for the contribution!
* Add docker setup (#256) (Sakib Hasan) * Allow explicit numeric datatype (#254) (Sakib Hasan) * Allow non-id serial properties (#198) (zbarbuto) * Revert PR #246 (#248) (Sakib Hasan) * Add loopback-connector as peer dependencies (#246) (Russ Tyndall) * Fix operations on ended transactions (zbarbuto) * dbdefaults: Cleanup InvalidDefault def after test (Kevin Delisle) * Reuse the data source to avoid too many clients (Raymond Feng)
Description
Allow properties that are not an ID to be created as
SERIAL
.Example use-case: Using GUIDs for a primary id key but still want an auto-incrementing counter value
Related issues
Checklist
guide