def insert_field(cls, index, field_name, field_type): cls._insert_field_impl(index, field_name, field_type) # There could have been changes to field_type in ComplexModel so we # should not use field_type directly from above if cls.__table__ is not None: add_column(cls, field_name, cls._type_info[field_name]) cls._insert_to_variants(index, field_name, field_type)
def insert_field(cls, index, field_name, field_type): super(TableModelBase, cls).insert_field(index, field_name, field_type) # There could have been changes to field_type in ComplexModel so we # should not use field_type directly from above add_column(cls, field_name, cls._type_info[field_name])