Skip to content

Commit

Permalink
Update Project schema with Budget related trigger
Browse files Browse the repository at this point in the history
Fixup.
  • Loading branch information
bryanjnelson committed Nov 16, 2023
1 parent b2ace14 commit dd02488
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dbschema/project.esdl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ module default {
message := "A Project's own context should be itself (no more or less)"
)
);

trigger createBudgetOnInsert after insert for each do (
insert default::Budget {
project := __new__,
projectContext := __new__.projectContext,
}
);
}

type TranslationProject extending Project {
Expand Down

0 comments on commit dd02488

Please sign in to comment.