X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fres%2Fraw%2Fsql_58.sql;h=23f6502a232db82a4a323cc78adc323eaf69a040;hp=066f22835bb3165f27e9756b5903568a28c49ac8;hb=522a56b74819e88afddb0d2172f1136c766dd66b;hpb=e28b8296d155c404cc5a702b3b477c41915d73dc diff --git a/app/src/main/res/raw/sql_58.sql b/app/src/main/res/raw/sql_58.sql index 066f2283..23f6502a 100644 --- a/app/src/main/res/raw/sql_58.sql +++ b/app/src/main/res/raw/sql_58.sql @@ -65,6 +65,23 @@ drop table options; alter table options_new rename to options; +create table account_values_new( + profile varchar not null, + account varchar not null, + currency varchar not null default '', + value real not null, + generation integer not null default 0, + primary key(profile, account, currency)); + +insert into account_values_new( + profile, account, currency, value, generation) +select profile, account, currency, value, generation +from account_values; + +drop table account_values; +alter table account_values_new rename to account_values; + + COMMIT TRANSACTION; PRAGMA foreign_keys = ON; \ No newline at end of file