X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fres%2Fraw%2Fsql_0.sql;h=cf9cca97b0c45fe0b684412aa3533820fe79537c;hb=d5218337e111a377a3661f0ae4a5049edc055705;hp=3e4feca22896e39cb872604ba342f270e4118b45;hpb=81277d1635a9b15fef1614a096d94f8772e40735;p=mobile-ledger.git diff --git a/app/src/main/res/raw/sql_0.sql b/app/src/main/res/raw/sql_0.sql index 3e4feca2..cf9cca97 100644 --- a/app/src/main/res/raw/sql_0.sql +++ b/app/src/main/res/raw/sql_0.sql @@ -13,6 +13,8 @@ -- You should have received a copy of the GNU General Public License -- along with MoLe. If not, see . +BEGIN TRANSACTION; + create table if not exists accounts(name varchar); create index if not exists idx_accounts_name on accounts(name); create table if not exists options(name varchar, value varchar); @@ -20,3 +22,5 @@ create unique index if not exists idx_options_name on options(name); create table if not exists account_values(account varchar not null, currency varchar not null, value decimal(18,2) not null); create index if not exists idx_account_values_account on account_values(account); create unique index if not exists un_account_values on account_values(account,currency); + +COMMIT TRANSACTION; \ No newline at end of file