So, we're using a staging server to test different branches before going to production.
And upon pipeline success we provide QA engineer possibility to deploy this new branch on staging. Then he might deploy another branch to test it.
What we want to do is revert DB state to what it was at commit from which both branches grow before applying current branch db state.
We use django migrations so it's easy to revert things if we know previously deployed commit/branch name.
So... is it possible to get previous deployment branch/commit while doing new deployment in a pipeline?