Skip to content

Commit

Permalink
Properly add consumed to table (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
neacsu committed Dec 8, 2022
1 parent fea9ec0 commit 9ff4051
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ CREATE TABLE coconut_credentials
voucher_info TEXT NOT NULL,
serial_number TEXT NOT NULL,
binding_number TEXT NOT NULL,
signature TEXT NOT NULL UNIQUE,
consumed BOOLEAN NOT NULL
signature TEXT NOT NULL UNIQUE
);

CREATE TABLE erc20_credentials
Expand Down
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
);

0 comments on commit 9ff4051

Please sign in to comment.