-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: store relation between commit hash and transaction timestamp (#…
…1946) We need to store the relation between commit hash (repo state) and cd-service transaction timestamp (database state), so that we have a 1 to 1 temporal relation between database state and repository state. Ref: SRX-R7B9VQ
- Loading branch information
1 parent
fc0dc0b
commit 6c718dd
Showing
5 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
database/migrations/postgres/1726064901745858_transaction_timestamps.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Table that stores which cd-service transaction timestamp corresponds to a certain commit hash | ||
-- on the manifest repo | ||
CREATE TABLE IF NOT EXISTS commit_transaction_timestamps | ||
( | ||
commitHash VARCHAR NOT NULL, | ||
transactionTimestamp TIMESTAMP NOT NULL, | ||
PRIMARY KEY(commitHash) | ||
); |
1 change: 1 addition & 0 deletions
1
database/migrations/sqlite/1726064901745858_transaction_timestamps.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../postgres/1726064901745858_transaction_timestamps.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
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