forked from Taskana/taskana
-
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.
Closes Taskana#2542 - Flag that counts the comments of a task has bee…
…n added
- Loading branch information
Showing
9 changed files
with
297 additions
and
266 deletions.
There are no files selected for viewing
116 changes: 58 additions & 58 deletions
116
common/taskana-common-data/src/main/resources/sql/monitor-data/monitor-sample-data.sql
Large diffs are not rendered by default.
Oops, something went wrong.
194 changes: 97 additions & 97 deletions
194
common/taskana-common-data/src/main/resources/sql/sample-data/task.sql
Large diffs are not rendered by default.
Oops, something went wrong.
214 changes: 107 additions & 107 deletions
214
common/taskana-common-data/src/main/resources/sql/test-data/task.sql
Large diffs are not rendered by default.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
...on/taskana-common/src/main/resources/sql/db2/taskana_schema_update_7.0.0_to_7.0.1_db2.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 @@ | ||
-- this script updates the TASKANA database schema from version 7.0.0. to version 7.0.1. | ||
SET SCHEMA %schemaName%; | ||
|
||
INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) | ||
VALUES (TASKANA_SCHEMA_VERSION_ID_SEQ.NEXTVAL, '7.0.1', CURRENT_TIMESTAMP); | ||
|
||
ALTER TABLE TASK | ||
ADD COLUMN NUMBER_OF_COMMENTS INT DEFAULT 0; | ||
|
||
UPDATE TASK t | ||
SET NUMBER_OF_COMMENTS = ( | ||
SELECT COUNT(*) | ||
FROM TASK_COMMENT tc | ||
WHERE tc.TASK_ID = t.ID | ||
); |
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
16 changes: 16 additions & 0 deletions
16
...-common/src/main/resources/sql/postgres/taskana_schema_update_7.0.0_to_7.0.1_postgres.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,16 @@ | ||
-- this script updates the TASKANA database schema from version 7.0.0 to version 7.0.1. | ||
|
||
SET search_path = %schemaName%; | ||
|
||
INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) | ||
VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '7.0.1', CURRENT_TIMESTAMP); | ||
|
||
ALTER TABLE TASK | ||
ADD COLUMN NUMBER_OF_COMMENTS INT4 DEFAULT 0; | ||
|
||
UPDATE TASK t | ||
SET NUMBER_OF_COMMENTS = ( | ||
SELECT COUNT(*) | ||
FROM TASK_COMMENT tc | ||
WHERE tc.TASK_ID = t.ID | ||
); |