From 4fa1421aeb36d32b3efc1b2569e87f53acb423c8 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 29 Oct 2013 10:34:35 -0400 Subject: [PATCH] Update schema_diff.py to use 'postgresql' URLs. This gets rid of a SQLAlchemy deprecation warning when using this tool w/ PostgreSQL: The SQLAlchemy PostgreSQL dialect has been renamed from 'postgres' to 'postgresql'. The new URL format is postgresql[+driver]://:@/ This appears to have been deprecated in the SQLAlchemy 0.6 series so I think we are Okay to remove it now. Change-Id: If8fdf822ba452b387e9f2f3ec7c9157e4ae932f9 --- tools/db/schema_diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/db/schema_diff.py b/tools/db/schema_diff.py index 8fd9aad829..99afd3d20f 100755 --- a/tools/db/schema_diff.py +++ b/tools/db/schema_diff.py @@ -103,7 +103,7 @@ class Postgres(object): shell=True) def url(self, name): - return 'postgres://localhost/%s' % name + return 'postgresql://localhost/%s' % name def _get_db_driver_class(db_type):