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]://<user>:<pass>@<host>/<dbname>

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
This commit is contained in:
Dan Prince 2013-10-29 10:34:35 -04:00
parent 2efcc9dc24
commit 4fa1421aeb

View File

@ -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):