-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: credential-proxy obtain-async (#5067)
* removed foreign key constraint on deposit table * fixed sql nullability * fixed swagger arguments for '/api/v1/ticketbook/shares/device/{device_id}/credential/{credential_id}' route * fixed missing swagger component definitions
- Loading branch information
Showing
6 changed files
with
31 additions
and
5 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
20 changes: 20 additions & 0 deletions
20
nym-credential-proxy/nym-credential-proxy/migrations/03_blinded_shares_no_foreign_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,20 @@ | ||
/* | ||
* Copyright 2024 - Nym Technologies SA <[email protected]> | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
|
||
DROP TABLE blinded_shares; | ||
CREATE TABLE blinded_shares | ||
( | ||
id INTEGER NOT NULL PRIMARY KEY, | ||
-- removed reference to `ticketbook_deposit` as the deposit wouldn't actually have been made before the pending share is inserted | ||
request_uuid TEXT NOT NULL, | ||
status TEXT NOT NULL, | ||
device_id TEXT NOT NULL, | ||
credential_id TEXT NOT NULL, | ||
available_shares INTEGER NOT NULL DEFAULT 0, | ||
error_message TEXT DEFAULT NULL, | ||
created TIMESTAMP WITHOUT TIME ZONE NOT NULL, | ||
updated TIMESTAMP WITHOUT TIME ZONE NOT NULL | ||
); |
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