Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add option to retain patch/update identifier safety in objection 0.7.0 #2
Addresses: This PR assumes that at some point grind-orm will upgrade to objection 0.7.*.
This safety feature seems useful as it's generally considered bad practice to change a model's identifier, so cases when this happens will often be unintentional and destructive.
This PR adds a non-default option to preserve the patch/update safety feature. At the same time, it remains compatible with grind-orm using objection 0.6.* (i.e. it doesn't add extra overhead).
Changes: adds a new static variable to Model called
Since the default for