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

Add upgrade scripts for database files #28

Merged
merged 6 commits into from
Dec 4, 2024
Merged

Commits on Dec 4, 2024

  1. Change: Add upgrade scripts for database files

    Postgres changes the format of the database files on disk between major
    versions. This means that in order to upgrade a postgres database, it is
    not sufficient to just bump the container versions.
    
    To help with this process, we now can use migration scripts that will
    take care of updating the database version without the need of a manual
    dump/restore.
    
    Ref.: DEVOPS-1292
    ailox committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    b9161a9 View commit details
    Browse the repository at this point in the history
  2. Update README with warning

    ailox committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    89ed1aa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9e96a12 View commit details
    Browse the repository at this point in the history
  4. Change: Improve test usage

    The previous version of the test needed to be changed for every new
    version of postgres, now we are using variables to template most of the
    behavior.
    ailox committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    0d3c9c9 View commit details
    Browse the repository at this point in the history
  5. Change: Build fresh image as part of the test

    This ensures no stale image is used on accident.
    ailox committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    07a810f View commit details
    Browse the repository at this point in the history
  6. Fix: Migrate old authentication settings

    Authentication settings are not migrated automatically, according to the
    documentation.
    The authentication is non-standard, if the database was created with the
    initdb script inside a docker container.
    
    To prevent problems with this, we will copy over the old pg_hba.conf
    file, which seldomly changes.
    ailox committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    7419bf1 View commit details
    Browse the repository at this point in the history