fix: set default value for NOT NULL column

This commit is contained in:
Vlad Stan 2022-07-05 18:25:49 +03:00
parent cff9a59693
commit 3d1b3b7173

View File

@ -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 '';"
)