Merge pull request #423 from catileptic/bugfix/419

Fix add_column method to work with Alembic 1.11+
This commit is contained in:
Friedrich Lindenberg
2023-07-12 10:34:38 +02:00
committed by GitHub
+1 -1
View File
@@ -353,7 +353,7 @@ class Table(object):
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.db.op.add_column(self.name, column, schema=self.db.schema)
self._reflect_table()
def _sync_columns(self, row, ensure, types=None):