in create_column docs, signpost the Types class

This commit is contained in:
Paul M Furley 2018-05-17 11:55:30 +01:00 committed by Paul M Furley
parent a64e2f2fee
commit a40341abaa
No known key found for this signature in database
GPG Key ID: 0AC6AD63E8E8A9B0

View File

@ -322,6 +322,8 @@ class Table(object):
::
table.create_column('created_at', db.types.datetime)
`type` corresponds to an SQLAlchemy type as described by `dataset.db.Types`
"""
name = normalize_column_name(name)
if self.has_column(name):