-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from lilith/calendar-refactor
Calendar refactor
- Loading branch information
Showing
106 changed files
with
5,340 additions
and
3,592 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const USERS_WITH_NOTHING = [1, 2, 7]; | ||
export const USERS_WITH_EMPTY_HOUSEHOLD = [3, 4]; | ||
export const USERS_WITH_ACTIVE_SESSION = [2, 4, 6, 7]; |
2 changes: 2 additions & 0 deletions
2
prisma/migrations/20240216102359_availability_date_index/migration.sql
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,2 @@ | ||
-- CreateIndex | ||
CREATE UNIQUE INDEX if not exists "AvailabilityDate_householdId_date_key" ON "AvailabilityDate"("householdId", "date"); |
15 changes: 15 additions & 0 deletions
15
prisma/migrations/20240216110100_availability_date_year/migration.sql
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,15 @@ | ||
UPDATE "AvailabilityDate" | ||
SET | ||
"date" = "date" + INTERVAL '23 years' | ||
WHERE | ||
EXTRACT(MONTH FROM "date") >= 8 AND EXTRACT(YEAR FROM "date") = 2001; | ||
|
||
UPDATE "AvailabilityDate" | ||
SET | ||
"date" = "date" + INTERVAL '24 years' | ||
WHERE | ||
EXTRACT(MONTH FROM "date") < 8 AND EXTRACT(YEAR FROM "date") = 2001; | ||
|
||
-- cases | ||
-- if month >= 8, then year should be set to 2023 | ||
-- if month < 8, then year should be set to 2024 |
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
Oops, something went wrong.