-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly add consumed to table (#1870)
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 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
16 changes: 16 additions & 0 deletions
16
common/credential-storage/migrations/20221208120000_add_consumed_to_coconut.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 @@ | ||
/* | ||
* Copyright 2022 - Nym Technologies SA <contact@nymtech.net> | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
DROP TABLE coconut_credentials; | ||
CREATE TABLE coconut_credentials | ||
( | ||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
voucher_value TEXT NOT NULL, | ||
voucher_info TEXT NOT NULL, | ||
serial_number TEXT NOT NULL, | ||
binding_number TEXT NOT NULL, | ||
signature TEXT NOT NULL UNIQUE, | ||
consumed BOOLEAN NOT NULL | ||
); |