]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/raw/sql_3.sql
let SQL revision files control the transaction
[mobile-ledger.git] / app / src / main / res / raw / sql_3.sql
index ceb373eceadc7addd249400e2e5e295b3bbaaff7..7994a7aafb2748302574ba08c21281c89fb41740 100644 (file)
@@ -1,4 +1,23 @@
+-- Copyright © 2018 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 <https://www.gnu.org/licenses/>.
+
+BEGIN TRANSACTION;
+
 alter table description_history add description_upper varchar;
 update description_history set description_upper = upper(description);
 alter table accounts add name_upper varchar;
-update accounts set name_upper = upper(name);
\ No newline at end of file
+update accounts set name_upper = upper(name);
+
+COMMIT TRANSACTION;
\ No newline at end of file