]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/raw/sql_34.sql
let SQL revision files control the transaction
[mobile-ledger.git] / app / src / main / res / raw / sql_34.sql
index e03541d473ee928a934bb5dcac27a45b2dde318c..041e3cf59ef2f65f2e65adc22bea3e08395a73ff 100644 (file)
@@ -12,6 +12,9 @@
 --
 -- 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 year integer not null default 0;
 alter table transactions add month integer not null default 0;
 alter table transactions add day integer not null default 0;
@@ -25,3 +28,5 @@ create table transactions_2(profile varchar not null, id integer not null, data_
 insert into transactions_2(profile, id, data_hash, year, month, day, description, comment, keep) select profile, id, data_hash, year, month, day, description, comment, keep from transactions;
 drop table transactions;
 alter table transactions_2 rename to transactions;
+
+COMMIT TRANSACTION;
\ No newline at end of file