[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libeufin] branch master updated: fix key tables
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libeufin] branch master updated: fix key tables |
Date: |
Wed, 25 Sep 2019 23:47:48 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new a1a9e3d fix key tables
a1a9e3d is described below
commit a1a9e3d4d38c89cd47e2ba57a21eefb854b4dd21
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Sep 25 23:47:22 2019 +0200
fix key tables
---
src/main/kotlin/tech/libeufin/DB.kt | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/main/kotlin/tech/libeufin/DB.kt
b/src/main/kotlin/tech/libeufin/DB.kt
index 58c6db0..c7b8a2d 100644
--- a/src/main/kotlin/tech/libeufin/DB.kt
+++ b/src/main/kotlin/tech/libeufin/DB.kt
@@ -108,7 +108,11 @@ object Subscriber: IntIdTable(){
*/
object EBICSPublicKEy: IntIdTable(){
val pub = binary("pub", PUBLIC_KEY_MAX_LENGTH)
- val state = stringLiteral("state")
+ val state = customEnumeration(
+ "state",
+ "ENUM('MISSING', 'NEW', 'RELEASED')",
+ {KeyStates.values()[it as Int]},
+ {it.name})
}
/**
@@ -116,11 +120,6 @@ object EBICSPublicKEy: IntIdTable(){
*/
object EBICSPrivateKEy: IntIdTable(){
val pub = binary("priv", PRIV_KEY_MAX_LENGTH)
- val state = customEnumeration(
- "state",
- "ENUM('MISSING', 'NEW', 'RELEASED')",
- {KeyStates.values()[it as Int]},
- {it.name})
}
fun db() {
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libeufin] branch master updated: fix key tables,
gnunet <=