kvesteri / sqlalchemy-continuum

Versioning extension for SQLAlchemy.
BSD 3-Clause "New" or "Revised" License
580 stars 126 forks source link

Can I use Activity Plugin with primary keys that aren't Integers? #274

Open noslenkwah opened 2 years ago

noslenkwah commented 2 years ago

The docs for the ActivityPlugin state that the object_id and target_id must be Integers. I'd like to use UUIDType for my primary keys which is essentially a Binary type.

object_id       BigInteger  The primary key of the object. Object can be
                            any entity which has an integer as primary key.

Is there any ways to modify the Activity class to change the column types to UUIDType?

AbdealiLoKo commented 2 years ago

As of now it is hard-coded to BigInteger and cannot be set to UUID