X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;ds=sidebyside;f=app%2Fsrc%2Fmain%2Fres%2Fraw%2Fsql_37.sql;h=5f57308db34a832500919ea82847ee9074cb5074;hb=390a653a4424bd146f73bca3e421a0be252ee443;hp=60b6e9309e2f3277796d83acebb2bdc6a435296c;hpb=81277d1635a9b15fef1614a096d94f8772e40735;p=mobile-ledger.git diff --git a/app/src/main/res/raw/sql_37.sql b/app/src/main/res/raw/sql_37.sql index 60b6e930..5f57308d 100644 --- a/app/src/main/res/raw/sql_37.sql +++ b/app/src/main/res/raw/sql_37.sql @@ -12,6 +12,11 @@ -- -- You should have received a copy of the GNU General Public License -- along with MoLe. If not, see . + +BEGIN TRANSACTION; + alter table transaction_accounts add order_no integer not null default 0; update transaction_accounts set order_no = rowid; create unique index un_transaction_accounts_order on transaction_accounts(profile, transaction_id, order_no); + +COMMIT TRANSACTION; \ No newline at end of file