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

Decouple DB migrations from connection setup #856

Merged
merged 5 commits into from
Oct 9, 2023
Merged

Conversation

lalithsuresh
Copy link
Collaborator

We currently perform database migrations while initializing connections. This is fraught with risks in a production setting (e.g., makes rollbacks difficult).

This PR separates out running migrations from the connection initialization code. The pipeline-manager all-in-one binary should appear no different than before. The individual service binaries however no longer run migrations on their own. They are complemented with a new binary that does nothing but connect to the DB and runs the migration.

Is this a user-visible change (yes/no): yes

@lalithsuresh lalithsuresh requested a review from gz October 9, 2023 05:29
CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
@lalithsuresh lalithsuresh merged commit 24b90e9 into main Oct 9, 2023
3 checks passed
@lalithsuresh lalithsuresh deleted the migrations branch October 9, 2023 22:03
lalithsuresh added a commit that referenced this pull request Oct 10, 2023
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
lalithsuresh added a commit that referenced this pull request Oct 10, 2023
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
lalithsuresh added a commit that referenced this pull request Oct 10, 2023
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants