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

[postgres] make init scripts idempotent #8

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

basti1302
Copy link
Member

This allows to attach a persistent volume to the PostgreSQL service and still always run the init scripts on startup. For the first startup with a fresh volume, the database will be initialized correctly; on subsequent starts the init scripts will do nothing.

This allows to attach a persistent volume to the PostgreSQL service and
still always run the init scripts on startup. For the first startup with
a fresh volume, the database will be initialized correctly; on
subsequent starts the init scripts will do nothing.
@basti1302 basti1302 enabled auto-merge (rebase) February 5, 2024 11:21
@basti1302 basti1302 merged commit b1facd1 into main Feb 5, 2024
47 checks passed
@basti1302 basti1302 deleted the ffspostgres-idempotent-init-scripts branch February 5, 2024 11:21
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.

1 participant