This commit is contained in:
Friedrich Lindenberg 2020-01-11 14:31:07 +01:00
parent 45ae60349c
commit 9b1f8ea649

View File

@ -29,14 +29,10 @@ class Table(object):
self.name = normalize_table_name(table_name)
self._table = None
self._indexes = []
if primary_id is not None:
self._primary_id = primary_id
else:
self._primary_id = self.PRIMARY_DEFAULT
if primary_type is not None:
self._primary_type = primary_type
else:
self._primary_type = Types.integer
self._primary_id = primary_id if primary_id is not None \
else self.PRIMARY_DEFAULT
self._primary_type = primary_type if primary_type is not None \
else Types.integer
self._auto_create = auto_create
@property