From 59d8cff1da0c5d1781f01ab8d43ca25e3561e1c4 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 10 Jan 2023 16:49:18 +0200 Subject: [PATCH] fix: avoid conflicts with `dbversions` table from `cashu` schema --- lnbits/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/commands.py b/lnbits/commands.py index 66b45b93..0de584c4 100644 --- a/lnbits/commands.py +++ b/lnbits/commands.py @@ -68,7 +68,7 @@ async def migrate_databases(): ) elif conn.type in {POSTGRES, COCKROACH}: exists = await conn.fetchone( - "SELECT * FROM information_schema.tables WHERE table_name = 'dbversions'" + "SELECT * FROM information_schema.tables WHERE table_schema= 'public' AND table_name = 'dbversions'" ) if not exists: