Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: setup: database: extend check empty
......................................................................

packaging: setup: database: extend check empty

do not check for specific table but if there is any table in public
schema.

Related-To: https://bugzilla.redhat.com/show_bug.cgi?id=1058013
Change-Id: I1703886f06afedcc339dfdf8f6c2138fa1c9d8e1
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M packaging/setup/ovirt_engine_setup/database.py
1 file changed, 2 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/95/23795/1

diff --git a/packaging/setup/ovirt_engine_setup/database.py 
b/packaging/setup/ovirt_engine_setup/database.py
index 40f3533..29178a1 100644
--- a/packaging/setup/ovirt_engine_setup/database.py
+++ b/packaging/setup/ovirt_engine_setup/database.py
@@ -358,11 +358,9 @@
             statement="""
                 select count(*) as count
                 from information_schema.tables
-                where table_name=%(table)s
+                where table_schema = 'public';
             """,
-            args=dict(
-                table='schema_version',
-            ),
+            args=dict(),
             host=host,
             port=port,
             secured=secured,


-- 
To view, visit http://gerrit.ovirt.org/23795
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1703886f06afedcc339dfdf8f6c2138fa1c9d8e1
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to