fix: avoid conflicts with dbversions table from cashu schema

This commit is contained in:
Vlad Stan
2023-01-18 17:38:36 +02:00
parent cb24a6a4f9
commit 59d8cff1da
+1 -1
View File
@@ -68,7 +68,7 @@ async def migrate_databases():
) )
elif conn.type in {POSTGRES, COCKROACH}: elif conn.type in {POSTGRES, COCKROACH}:
exists = await conn.fetchone( 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: if not exists: