-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(journal): merged tables into a single 'journal' table
This commit merges the runtime and persistent tables into a single 'journal' table with additional logic to distinguish journal entries from the active session and previous sessions. Signed-off-by: Jason Jerome <jajerome@redhat.com>
- Loading branch information
Showing
4 changed files
with
29 additions
and
71 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
3 changes: 1 addition & 2 deletions
3
internal/messagejournal/migrations/000001_messagejournal.down.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 |
---|---|---|
@@ -1,2 +1 @@ | ||
DROP TABLE IF EXISTS runtime; | ||
DROP TABLE IF EXISTS persistent; | ||
DROP TABLE IF EXISTS journal; |
12 changes: 1 addition & 11 deletions
12
internal/messagejournal/migrations/000001_messagejournal.up.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