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

Feature Request: making databasechangeloglock table functional #6

Open
dannov91 opened this issue Apr 26, 2021 · 3 comments
Open

Feature Request: making databasechangeloglock table functional #6

dannov91 opened this issue Apr 26, 2021 · 3 comments

Comments

@dannov91
Copy link

databasechangeloglock table stores information that let us know whether a change set of migrations are running or not, that is to avoid race conditions if another dev tries to run migrations simultaneously.

When beginning any DB transaction, we should check if databasechangeloglock.locked column has a single value of true or false, and avoid any attempt of parallel migration runs.

Note: this is an example, I think this is somehow the behavior.

@paganotoni
Copy link
Member

Thanks for bringing this topic in @dannov91. I wonder if we could research what the liquidase documentation says for this and maybe mimic it.

@paganotoni
Copy link
Member

@dannov91 found these docs https://docs.liquibase.com/concepts/basic/databasechangeloglock-table.html on the implementation of the table.

@dannov91
Copy link
Author

Really helpful! thanks you @paganotoni :)

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