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

Upgrade PostgreSQL from 10.1 to 16.4 #529

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

moustaphacheikh
Copy link
Collaborator

How to Test the PostgreSQL Upgrade:

  1. Build and start the updated Docker containers:

    docker compose up --build
  2. Restore the legacy backup:

    • Copy the legacy backup file into the backup container:

      docker cp ../daisy_test.tar.gz $(docker compose ps -q backup):/code/daisy_test.tar.gz
    • Execute the legacy restore script inside the backup container:

      docker compose exec backup sh /code/scripts/legacy_restore.sh /code/daisy_test.tar.gz
    • Remove the backup file from the container:

      docker compose exec backup rm /code/daisy_test.tar.gz
  3. Apply Django migrations:

    docker compose exec web python manage.py migrate
  4. Rebuild the Solr index:

    docker compose exec web python manage.py rebuild_index --noinput

@moustaphacheikh moustaphacheikh merged commit 441213b into develop Oct 16, 2024
2 checks passed
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.

2 participants