Add wallet_type column to distinguish exchanges from wallets
Exchanges (can receive bank deposits) vs wallets (cold storage only). Supports ?type= filter on GET /api/wallets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ALTER TABLE wallets DROP COLUMN wallet_type;
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE wallets ADD COLUMN wallet_type TEXT NOT NULL DEFAULT 'exchange';
|
||||
--;;
|
||||
UPDATE wallets SET wallet_type = 'wallet'
|
||||
WHERE name IN ('Cold', 'Coldcard', 'Nunchuk Multi Sig');
|
||||
Reference in New Issue
Block a user