fix: Fix stripe_service.py postgres column check

This commit is contained in:
Your Name
2026-03-31 22:33:59 +02:00
parent 892db08d22
commit dac23667df

View File

@@ -57,7 +57,8 @@ def _ensure_stripe_columns():
cursor.execute( cursor.execute(
"SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = 'users')" "SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = 'users')"
) )
if not cursor.fetchone()[0]: row = cursor.fetchone()
if not row or not row[0]:
return return
cursor.execute( cursor.execute(
"SELECT column_name FROM information_schema.columns WHERE table_name = 'users'" "SELECT column_name FROM information_schema.columns WHERE table_name = 'users'"