X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fres%2Fraw%2Fsql_34.sql;h=041e3cf59ef2f65f2e65adc22bea3e08395a73ff;hp=e03541d473ee928a934bb5dcac27a45b2dde318c;hb=390a653a4424bd146f73bca3e421a0be252ee443;hpb=81277d1635a9b15fef1614a096d94f8772e40735 diff --git a/app/src/main/res/raw/sql_34.sql b/app/src/main/res/raw/sql_34.sql index e03541d4..041e3cf5 100644 --- a/app/src/main/res/raw/sql_34.sql +++ b/app/src/main/res/raw/sql_34.sql @@ -12,6 +12,9 @@ -- -- You should have received a copy of the GNU General Public License -- along with MoLe. If not, see . + +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