-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kalenteri: Tieto jos työntekijä muokannut omaa/mahdollisesti toisen k…
…alenterimerkintää
- Loading branch information
1 parent
27329b9
commit 6580f47
Showing
13 changed files
with
102 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
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
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
18 changes: 18 additions & 0 deletions
18
service/src/main/resources/db/migration/V463__calendar_event_modified_by.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,18 @@ | ||
ALTER TABLE calendar_event | ||
ADD COLUMN created_by UUID REFERENCES evaka_user, | ||
ADD COLUMN modified_by UUID REFERENCES evaka_user, | ||
ADD COLUMN content_modified_by UUID REFERENCES evaka_user; | ||
|
||
UPDATE calendar_event SET | ||
created_by = COALESCE(created_by, '00000000-0000-0000-0000-000000000000'::UUID), | ||
modified_by = COALESCE(modified_by, '00000000-0000-0000-0000-000000000000'::UUID), | ||
content_modified_by = COALESCE(content_modified_by, '00000000-0000-0000-0000-000000000000'::UUID); | ||
|
||
ALTER TABLE calendar_event | ||
ALTER COLUMN created_by SET NOT NULL, | ||
ALTER COLUMN modified_by SET NOT NULL, | ||
ALTER COLUMN content_modified_by SET NOT NULL; | ||
|
||
CREATE INDEX fk$calendar_event_created_by ON calendar_event(created_by); | ||
CREATE INDEX fk$calendar_event_modified_by ON calendar_event(modified_by); | ||
CREATE INDEX fk$calendar_event_content_modified_by ON calendar_event(content_modified_by); |
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