summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-07-21 15:05:11 +0200
committerMS <ms@taler.net>2023-07-21 15:05:11 +0200
commite3cda62aac3375ba0867ff2b454f4f3e2b9b8529 (patch)
tree7d5fb793127062fd4064e604495b7079a1841296
parent006c1ef8f257ca3c304078ba6688dcdfe66f2821 (diff)
downloadlibeufin-e3cda62aac3375ba0867ff2b454f4f3e2b9b8529.tar.gz
libeufin-e3cda62aac3375ba0867ff2b454f4f3e2b9b8529.tar.bz2
libeufin-e3cda62aac3375ba0867ff2b454f4f3e2b9b8529.zip
notes
-rw-r--r--database-versioning/new/sandbox-0001-refactor.sql13
-rw-r--r--sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt5
2 files changed, 10 insertions, 8 deletions
diff --git a/database-versioning/new/sandbox-0001-refactor.sql b/database-versioning/new/sandbox-0001-refactor.sql
index ed846a00..65a1008b 100644
--- a/database-versioning/new/sandbox-0001-refactor.sql
+++ b/database-versioning/new/sandbox-0001-refactor.sql
@@ -1,4 +1,9 @@
--- Compatible with LibEuFin version: 1fe2687aaf696c8566367fe7ed082f1d78e6b78d
+
+-- Under discussion:
+
+-- amount format
+-- timestamp format
+-- comment format: '--' vs 'COMMENT ON'
BEGIN;
@@ -6,18 +11,18 @@ SELECT _v.register_patch('sandbox-0001', NULL, NULL);
CREATE TABLE IF NOT EXISTS demobankconfigs
(id BIGSERIAL PRIMARY KEY
- ,hostname TEXT NOT NULL
+ ,name TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS bankaccounts
(id SERIAL PRIMARY KEY
,iban TEXT NOT NULL
- ,bic TEXT DEFAULT 'SANDBOXX' NOT NULL
+ ,bic TEXT NOT NULL -- NOTE: This had a default of 'SANDBOXX', now Kotlin must keep it.
,"label" TEXT NOT NULL UNIQUE
,"owner" TEXT NOT NULL
,"isPublic" BOOLEAN DEFAULT false NOT NULL
,"demoBank" BIGINT REFERENCES demobankconfigs(id) ON DELETE RESTRICT ON UPDATE RESTRICT
- ,"lastTransaction" BIGINT NULL REFERENCES bankaccounttransactions(id) ON DELETE RESTRICT ON UPDATE RESTRICT
+ ,"lastTransaction" BIGINT NULL REFERENCES bankaccounttransactions(id) ON DELETE RESTRICT ON UPDATE RESTRICT -- FIXME: under discussion on MM, might be removed.
,"lastFiatSubmission" BIGINT NULL REFERENCES bankaccounttransactions(id) ON DELETE RESTRICT ON UPDATE RESTRICT
,"lastFiatFetch" TEXT DEFAULT '0' NOT NULL
,"balance" TEXT DEFAULT '0'
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index 87db263e..934dbc4f 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -529,10 +529,7 @@ object BankAccountsTable : IntIdTable() {
/**
* Tracks the last fiat payment that was read from Nexus. This tracker
* gets updated ONLY IF the exchange gets successfully paid with the related
- * amount in the regional currency. NOTE: in case of disputes, the customer
- * will provide the date of a problematic withdrawal, and the regional currency
- * administrator should check into the "admin" (regional) outgoing history by
- * using such date as filter.
+ * amount in the regional currency.
*/
val lastFiatFetch = text("lastFiatFetch").default("0")
}