Open Amr-Hash opened 3 years ago
There is already a sequence added in the Transaction.id
table - does that work with teradata
Could you provide a reproducible example ?
I will also mention that you can provide your own Transaction model in the make_versioned
:
from sqlalchemy_continuum import VersioningManager, make_versioned
from sqlalchemy_continuum.transaction import TransactionBase
class MyTransaction(Base, TransactionBase): # Where Base is the sqla declarative base
# Here you can add any custom attributes for ID you need for your DB
id = sa.Column(sa.types.BigInteger, sa.schema.Sequence('transaction_id_seq'), primary_key=True, autoincrement=True)
make_versioned(
versioning_manager=VersioningManager(transaction_cls=MyTransaction)
)
Teradata ID field is generated as BIGINT only and it's not auto incremented, There is a column called Identity Column in teradata But to fix it I think you could add an optional UUID or using the timestamp as the Primary Key instead of the ID.