Skip to content

Fix migration arguments and add PostgreSQL 17 upgrade script#24

Open
pollardld wants to merge 3 commits intomainfrom
postgres17
Open

Fix migration arguments and add PostgreSQL 17 upgrade script#24
pollardld wants to merge 3 commits intomainfrom
postgres17

Conversation

@pollardld
Copy link
Member

@pollardld pollardld commented Mar 21, 2026

Upgrade to postgres 17 by running sudo python3 install_postgres17.py


@pollardld pollardld self-assigned this Mar 21, 2026
Copilot AI review requested due to automatic review settings March 21, 2026 21:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to (1) correct a problematic default value in a Wagtail/Django migration and (2) add a utility script intended to help install/upgrade to PostgreSQL 17 on Ubuntu via the PGDG apt repository.

Changes:

  • Updates migration 0030 to use an empty default (default=list) for a StreamField instead of a hard-coded JSON string.
  • Adds a new Python script under scripts/ to configure PGDG and install postgresql-17 via apt.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
wcoa/migrations/0030_ohidashboard_body.py Fixes StreamField default used when adding the body field.
scripts/postgres_upgrade_2_17.py New helper script to add PGDG repo + install PostgreSQL 17 (has a few correctness/usability issues noted).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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