X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fres%2Fraw%2Fdb_62.sql;fp=app%2Fsrc%2Fmain%2Fres%2Fraw%2Fdb_62.sql;h=c62609d8402bace3993488e6a50438a5e0a51ccb;hp=0000000000000000000000000000000000000000;hb=e58019b5058f781dcc4860fb222808ca885ab491;hpb=3a93293f0b46608a6aa25ace440977ea49459619 diff --git a/app/src/main/res/raw/db_62.sql b/app/src/main/res/raw/db_62.sql new file mode 100644 index 00000000..c62609d8 --- /dev/null +++ b/app/src/main/res/raw/db_62.sql @@ -0,0 +1,26 @@ +-- Copyright © 2021 Damyan Ivanov. +-- This file is part of MoLe. +-- MoLe is free software: you can distribute it and/or modify it +-- under the term of the GNU General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your opinion), any later version. +-- +-- MoLe is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License terms for details. +-- +-- You should have received a copy of the GNU General Public License +-- along with MoLe. If not, see . + +-- migrate from revision 60 to revision 61 + +-- pragmas need to be outside of transaction control +-- foreign_keys is needed so that foreign key constraints are redirected + +commit transaction; +pragma foreign_keys = on; + +begin transaction; + +create unique index currency_name_idx on currencies(name); \ No newline at end of file