libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit a1a9e3d4d38c89cd47e2ba57a21eefb854b4dd21
parent 3a1e451d2610bcbb8cb8e1dfdc2f7ad145630bc4
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Wed, 25 Sep 2019 23:47:22 +0200

fix key tables

Diffstat:
Msrc/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 @@ -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() {