rebus-ink / ink-API

Hobb API Server: backend for the Rebus Reader system
GNU Affero General Public License v3.0
4 stars 5 forks source link

fixed it so we can update foreign keys to null #634

Closed Marie000 closed 3 years ago

Marie000 commented 3 years ago

This fixes the bug that was preventing us from updating a foreign key to null. We can now do this update on Note.contextId, Note.sourceId and Tag.notebookId Most other foreign keys are required, so no need to update them to null.

Let me know if there are any other cases that you can think of. Normally they should work, but I can add a test to make sure they do.