Check if primary column on first _sync_table call
Checks if column is primary key column on table creation, before attempting to add again as non-primary key column.
This commit is contained in:
parent
1fd19f37b9
commit
753d4a28d4
@ -241,6 +241,7 @@ class Table(object):
|
||||
autoincrement=increment)
|
||||
self._table.append_column(column)
|
||||
for column in columns:
|
||||
if not column.name == self._primary_id:
|
||||
self._table.append_column(column)
|
||||
self._table.create(self.db.executable, checkfirst=True)
|
||||
elif len(columns):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user