fix sql migration

This commit is contained in:
Simon Wicky
2023-11-07 11:49:11 +00:00
committed by durch
parent ddfd503962
commit 9d030bef94
3 changed files with 14 additions and 8 deletions
@@ -12,6 +12,7 @@ use crate::Base58;
const ATTRIBUTES_LEN: usize = 3;
#[derive(Debug)]
pub struct GroupParameters {
/// Generator of the G1 group
g1: G1Affine,
@@ -102,6 +103,7 @@ pub struct PublicKeyRP {
pub(crate) beta: G2Projective,
}
#[derive(Debug)]
pub struct Parameters {
/// group parameters
grp: GroupParameters,
@@ -76,14 +76,6 @@ create table gateway_ipv6_status
FOREIGN KEY (gateway_details_id) REFERENCES gateway_details (id)
);
create table credentials
(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
credential TEXT NOT NULL,
gateway_address TEXT NOT NULL
);
-- indices for faster lookups
CREATE
INDEX `mixnode_ipv4_status_index` ON `mixnode_ipv4_status` (`mixnode_details_id`, `timestamp` desc);
@@ -0,0 +1,12 @@
/*
* Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
* SPDX-License-Identifier: Apache-2.0
*/
create table credentials
(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
credential TEXT NOT NULL,
gateway_address TEXT NOT NULL
);