[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 03/03: respect plural names for tables
From: |
gnunet |
Subject: |
[libeufin] 03/03: respect plural names for tables |
Date: |
Mon, 02 Dec 2019 20:08:57 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
commit d33a8637dbf85a19065d6f501ab2896cb4b5b884
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Dec 2 20:08:38 2019 +0100
respect plural names for tables
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt | 3 ++-
sandbox/src/test/kotlin/DbTest.kt | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index bc78981..e411b7d 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -90,7 +90,7 @@ fun Blob.toByteArray(): ByteArray {
return this.binaryStream.readAllBytes()
}
-object BalanceTable : IntIdTable() {
+object BalancesTable : IntIdTable() {
// Customer ID is the default 'id' field provided by the constructor.
val value = integer("value")
val fraction = integer("fraction").check {
@@ -296,6 +296,7 @@ fun dbCreateTables() {
// addLogger(StdOutSqlLogger)
SchemaUtils.createMissingTablesAndColumns(
+ BalancesTable,
BankCustomersTable,
EbicsSubscribersTable,
EbicsHostsTable,
diff --git a/sandbox/src/test/kotlin/DbTest.kt
b/sandbox/src/test/kotlin/DbTest.kt
index 5a7d3c2..fbcfac8 100644
--- a/sandbox/src/test/kotlin/DbTest.kt
+++ b/sandbox/src/test/kotlin/DbTest.kt
@@ -16,7 +16,7 @@ class DbTest {
Database.connect("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1", driver =
"org.h2.Driver")
transaction {
- SchemaUtils.create(BalanceTable)
+ SchemaUtils.create(BalancesTable)
}
assertFailsWith<ExposedSQLException> {
--
To stop receiving notification emails like this one, please contact
address@hidden.