From: Damyan Ivanov Date: Thu, 6 Dec 2018 20:39:22 +0000 (+0000) Subject: table for options stored in the database X-Git-Tag: v0.3~320 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=f5ae42d54ed4403a1af624abe0c7e3c0f5532601;p=mobile-ledger.git table for options stored in the database --- 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);"); } }