]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix db migration to surrogate IDs (final step)
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 25 Mar 2021 21:34:31 +0000 (23:34 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 25 Mar 2021 21:34:31 +0000 (23:34 +0200)
the cleanest approach is to create all new tables, move the data, and
then drop/rename them, followed by index creation

fixes a problem with transaction_accounts being empty because the
profiles table was dropped

requires foreign_keys pragma (set outside transaction control) so that
the declare foreign keys to the new tables get renamed with the tables


No differences found