summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alembic/ddl/postgresql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alembic/ddl/postgresql.py b/alembic/ddl/postgresql.py
index 4c6e9d7..ac3a5f4 100644
--- a/alembic/ddl/postgresql.py
+++ b/alembic/ddl/postgresql.py
@@ -4,7 +4,7 @@ from .. import compat
from .base import compiles, alter_table, format_table_name, RenameTable
from .impl import DefaultImpl
from sqlalchemy.dialects.postgresql import INTEGER, BIGINT
-from sqlalchemy import text, Float, Numeric
+from sqlalchemy import text, Numeric
import logging
log = logging.getLogger(__name__)
@@ -36,7 +36,7 @@ class PostgresqlImpl(DefaultImpl):
isinstance(metadata_column.server_default.arg,
compat.string_types) and \
not re.match(r"^'.+'$", rendered_metadata_default) and \
- not isinstance(inspector_column.type, (Float, Numeric)):
+ not isinstance(inspector_column.type, Numeric):
# don't single quote if the column type is float/numeric,
# otherwise a comparison such as SELECT 5 = '5.0' will fail
rendered_metadata_default = "'%s'" % rendered_metadata_default