-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): Add DTSTART equivalent support to spending/funding. (#1329)
Right now we do not store the DTSTART component of the RRule, this has led to some bugs already where we have to assume the DTSTART based on some educated guess data. This can lead to wrong calculations in the future. So going forward I want to support this parameter. This is the start of the work on that.
- Loading branch information
1 parent
d27edfa
commit 4db243e
Showing
5 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ALTER TABLE "spending" ADD COLUMN "date_started" TIMESTAMPTZ NULL; | ||
UPDATE "spending" SET "date_started" = "next_recurrence" WHERE "date_started" IS NULL; | ||
ALTER TABLE "spending" ALTER COLUMN "date_started" SET NOT NULL; | ||
|
||
ALTER TABLE "funding_schedules" ADD COLUMN "date_started" TIMESTAMPTZ NULL; | ||
UPDATE "funding_schedules" SET "date_started" = "next_occurrence" WHERE "date_started" IS NULL; | ||
ALTER TABLE "funding_schedules" ALTER COLUMN "date_started" SET NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters