Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hybrid native/non-native versioning support #314

Open
achalagarwal opened this issue Oct 2, 2022 · 0 comments
Open

Hybrid native/non-native versioning support #314

achalagarwal opened this issue Oct 2, 2022 · 0 comments

Comments

@achalagarwal
Copy link

Hi, I would like to support both native and non-native versioning in my codebase.

i.e. some models use native versioning and others don't.

I tried using multiple versioning managers and specifying the version manager for each model, after making some changes in the sqlalchemy-continuum codebase, I was able to get the migrations to work correctly.

However I am facing an issue when I update an object, the issue is that I get sqlalchemy object already exists for the Transaction model. I assume this is because both the versioning mechanisms are kicking in when I update an object and that causes an issue.

What would you recommend as the right approach?


My objective to use non-native versioning is for the in-app plugins (which for obvious reasons cannot be achieved in native versioning)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant