extra check before column creation
This commit is contained in:
parent
db9c41a090
commit
1fd19f37b9
@ -247,6 +247,7 @@ class Table(object):
|
||||
with self.db.lock:
|
||||
self._threading_warn()
|
||||
for column in columns:
|
||||
if not self.has_column(column.name):
|
||||
self.db.op.add_column(self.name, column, self.db.schema)
|
||||
self._reflect_table()
|
||||
|
||||
|
||||
5
setup.py
5
setup.py
@ -8,7 +8,7 @@ if sys.version_info[:2] <= (2, 6):
|
||||
|
||||
setup(
|
||||
name='dataset',
|
||||
version='1.0.1',
|
||||
version='1.0.2',
|
||||
description="Toolkit for Python-based database access.",
|
||||
long_description="",
|
||||
classifiers=[
|
||||
@ -19,7 +19,8 @@ setup(
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5'
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6'
|
||||
],
|
||||
keywords='sql sqlalchemy etl loading utility',
|
||||
author='Friedrich Lindenberg, Gregor Aisch, Stefan Wehrmeyer',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user