]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/raw/sql_9.sql
let SQL revision files control the transaction
[mobile-ledger.git] / app / src / main / res / raw / sql_9.sql
index 16a78a833d272d8ac064bd4706467df5c96086aa..6f290d76e232b5e0884a785e59d541531fdb80a9 100644 (file)
@@ -13,6 +13,8 @@
 -- 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 transactions add keep boolean default 1 not null;
 update transactions set keep = 1;
 create table transactions_new(id integer, date varchar, description varchar, data_hash varchar, keep boolean);
@@ -22,3 +24,5 @@ create table transactions(id integer primary key, date varchar, description varc
 create unique index un_transactions_data_hash on transactions(data_hash);
 insert into transactions(id, date, description, data_hash, keep) select id, date, description, data_hash, keep from transactions_new;
 drop table transactions_new;
+
+COMMIT TRANSACTION;
\ No newline at end of file