4961cc045b
* Allow deletion of wallet logs * Refactor wallet logs client<>server glue code * Use variant='link' and className='text-muted fw-bold nav-link' for clear & cancel There is a bug though: 'clear' stays highlighted after modal is closed * Include wallet in toast * Delete logs on logout * Fix ugly wallet name in confirm dialog * Fix clear still highlighted after modal closed * Only delete client wallet logs * Fix ugly wallet name in toast * Fix bad search and replace * Use Wallet object as constant * Also delete LNC logs on logout --------- Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
18 lines
525 B
SQL
18 lines
525 B
SQL
/*
|
|
Warnings:
|
|
|
|
- Changed the type of `wallet` on the `WalletLog` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
|
|
*/
|
|
|
|
UPDATE "WalletLog"
|
|
SET wallet = CASE
|
|
WHEN wallet = 'walletLND' THEN 'LND'
|
|
WHEN wallet = 'walletCLN' THEN 'CLN'
|
|
WHEN wallet = 'walletLightningAddress' THEN 'LIGHTNING_ADDRESS'
|
|
ELSE wallet
|
|
END;
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "WalletLog" ALTER COLUMN "wallet" TYPE "WalletType" USING "wallet"::"WalletType";
|