Skip to content

Commit 68d60d7

Browse files
committed
Add constraint on periodic report dates
1 parent 84e931e commit 68d60d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dbschema/periodic-report.gel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module default {
33
required period: range<cal::local_date>;
44
`start` := range_get_lower(.period);
55
`end` := date_range_get_upper(.period);
6+
constraint expression on (.`end` >= .`start`);
67

78
skippedReason: str;
89

0 commit comments

Comments
 (0)