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

Associated table and find specific datetime #51

Open
braguzz opened this issue Jul 26, 2024 · 1 comment
Open

Associated table and find specific datetime #51

braguzz opened this issue Jul 26, 2024 · 1 comment

Comments

@braguzz
Copy link

braguzz commented Jul 26, 2024

Hi, I have this situation, I'd like to version two tables

Procedures
Specifics

Procedures has many Specifics

When I change something in a Procedure, all related specifics should point to last version.

When I change a Procedure last version should point to the specific.

I have to retrieve a procedure and its specific at a given a datetime (I mean I'd love to retrieve that procedure and specific at that datetime).

It is possible?
It's the right plugin?

@jeremyharris
Copy link
Collaborator

Hi! I'm not sure I fully understand your use case, but in general the way this plugin works is transparent to your queries. Versions are saved in the background for later reference, but you will always query against the latest data (the current version).

If you change a Procedure it does not affect its Specifics. Likewise if you change a single Specific, it does not change the version of the Procedure or other Specifics. Updating those records only saves the old version (before the changes) into its version table.

If this doesn't answer your question, could you reply with some more information and maybe a more concrete example?

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

2 participants