mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-26 11:56:16 +02:00
fix: set default value for NOT NULL column
This commit is contained in:
@@ -60,7 +60,7 @@ async def m003_add_columns_to_wallets(db):
|
||||
|
||||
await db.execute("ALTER TABLE watchonly.wallets ADD COLUMN type TEXT;")
|
||||
await db.execute(
|
||||
"ALTER TABLE watchonly.wallets ADD COLUMN fingerprint TEXT NOT NULL;"
|
||||
"ALTER TABLE watchonly.wallets ADD COLUMN fingerprint TEXT NOT NULL DEFAULT '';"
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user