Skip to content

Bugfixes, Added ReferentialAction to Foreign types

Lewin Probst requested to merge emirror-de/barrel:main into main

This PR does

  • Add ReferentialAction enum for ON UPDATE and ON DELETE statement in foreign types
  • Fixes NOT NULL constraint in foreign keys when adding a column
  • Fixes foreign key syntax in sqlite backend
  • Changes API types::foreign(...)

I did these changes during development of naphtha. For further development these changes would be required to be integrated in the official barrel crate. Otherwise I am not able to publish a new version of naphtha forcing me to publish a separate version of barrel to crates.io, which would not make any sense in my opinion.

I am happy to adjust these changes to your quality requirements, if they do not meet them yet.

Edited by Lewin Probst

Merge request reports