-
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.
- Loading branch information
1 parent
ba86751
commit 4c357ef
Showing
12 changed files
with
461 additions
and
276 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
DSL/Liquibase/changelog/20241210105636-add-created-to-chat-history-comments-table.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,9 @@ | ||
-- liquibase formatted sql | ||
-- changeset Janno Stern:20241210105636 | ||
ALTER TABLE chat_history_comments | ||
ADD COLUMN IF NOT EXISTS created TIMESTAMP WITH TIME ZONE; | ||
|
||
-- Update existing rows with a default timestamp (e.g., the current time or a specific value) | ||
UPDATE chat_history_comments | ||
SET created = NOW() | ||
WHERE created IS NULL; |
4 changes: 4 additions & 0 deletions
4
...ibase/changelog/20241211105438-add-author-display-name-to-chat-history-comments-table.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,4 @@ | ||
-- liquibase formatted sql | ||
-- changeset Janno Stern:20241211105438 | ||
ALTER TABLE chat_history_comments | ||
ADD COLUMN author_display_name TEXT; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
INSERT INTO "chat_history_comments" (chat_id, comment) | ||
VALUES (:chatId, :comment) | ||
RETURNING id, chat_id, comment; | ||
INSERT INTO "chat_history_comments" (chat_id, comment, created, author_display_name) | ||
VALUES (:chatId, :comment, :created::timestamp with time zone, :authorDisplayName) | ||
RETURNING id, chat_id, comment, created, author_display_name; |
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
Oops, something went wrong.