From f5ae42d54ed4403a1af624abe0c7e3c0f5532601 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 6 Dec 2018 20:39:22 +0000 Subject: [PATCH] table for options stored in the database --- app/src/main/java/net/ktnx/mobileledger/MobileLedgerDB.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/net/ktnx/mobileledger/MobileLedgerDB.java b/app/src/main/java/net/ktnx/mobileledger/MobileLedgerDB.java index f2c52f06..350f5018 100644 --- a/app/src/main/java/net/ktnx/mobileledger/MobileLedgerDB.java +++ b/app/src/main/java/net/ktnx/mobileledger/MobileLedgerDB.java @@ -20,5 +20,7 @@ class MobileLedgerDB { db.execSQL("create table if not exists accounts(name varchar);"); db.execSQL("create index if not exists idx_accounts_name on accounts(name);"); + db.execSQL("create table if not exists options(name varchar, value varchar);"); + db.execSQL("create unique index if not exists idx_options_name on options(name);"); } } -- 2.39.5