-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Denis Bykhov <[email protected]>
- Loading branch information
1 parent
e0ca033
commit 76bcd3c
Showing
9 changed files
with
151 additions
and
27 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,5 @@ | ||
ALTER TABLE calendar | ||
ADD "hidden" bool; | ||
|
||
UPDATE calendar | ||
SET "hidden" = (data->>'hidden')::boolean; |
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,19 @@ | ||
ALTER TABLE event | ||
ADD "date" bigint, | ||
ADD "dueDate" bigint, | ||
add calendar text, | ||
ADD "participants" text[]; | ||
|
||
UPDATE event | ||
SET "date" = (data->>'date')::bigint; | ||
|
||
UPDATE event | ||
SET "dueDate" = (data->>'dueDate')::bigint; | ||
|
||
UPDATE calendar | ||
SET "calendar" = (data->>'calendar'); | ||
|
||
UPDATE event | ||
SET "participants" = array( | ||
SELECT jsonb_array_elements_text(data->'participants') | ||
); |
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,17 @@ | ||
ALTER TABLE time | ||
ADD "workslots" bigint, | ||
ADD "doneOn" bigint, | ||
add rank text, | ||
ADD "user" text; | ||
|
||
UPDATE time | ||
SET "workslots" = (data->>'workslots')::bigint; | ||
|
||
UPDATE time | ||
SET "doneOn" = (data->>'doneOn')::bigint; | ||
|
||
UPDATE time | ||
SET "rank" = (data->>'rank'); | ||
|
||
UPDATE time | ||
SET "user" = (data->>'user'); |
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