create db triggers on db creation #7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
as #3 pointed, triggers for
Updated
attr had to be created in1442a2a664
.those are, however, not present on db creation and we currently don't have a mechanism applying them automatically when they're not present, risking a situation where we're getting bogus values again.
we need a way to run our trigger creation script on apps first run or similar.
This project might be the right solution
https://github.com/win7user10/Laraue.EfCoreTriggers
https://www.nuget.org/packages/Laraue.EfCoreTriggers.PostgreSql/1.1.1, respectively.
("EfCoreTriggers is the library to write native SQL triggers using EFCore model builder. Triggers are automatically translating into sql and adding to migrations.")
thx, gotta look into that! @FunTom