[Feature] Ensure PostgreSQL is v15 in all locations
TimidRobot opened this issue · 1 comments
TimidRobot commented
Problem
- Production Heroku PostgreSQL is v12
PostgreSQL 12 reaches End of Life on 2024-May-30. Due to security and operational concerns, Heroku cannot run unsupported software as a service.
- GitHub Actions PostgreSQL is v14
- Local dev Docker PostgreSQL is v14
Description
Ensure PostgreSQL is v15 in all locations (both local dev and production Heroku)
Additional context
- creativecommons/tech-support#1133 (private repo)
- Heroku Postgres Version Support | Heroku Dev Center
- Upgrading the Version of a Heroku Postgres Database | Heroku Dev Center
- PostgreSQL: Release Notes
Implementation
- I would be interested in implementing this feature.
TimidRobot commented
Production upgraded per Upgrading the Version of a Heroku Postgres Database | Heroku Dev Center:
-
Initialize follower:
heroku addons:create heroku-postgresql:standard-0 --follow postgresql-sinuous-94712
- Warning encountered due to heroku/homebrew-brew#37
Warning: heroku update available from 8.5.0 to 8.10.0.
- Warning encountered due to heroku/homebrew-brew#37
-
Track status and wait for completion
heroku pg:wait
-
Enable maintenance mode
heroku maintenance:on
-
Verify follower is caught up:
heroku pg:info
-
Upgrade follower database
heroku pg:upgrade postgresql-flat-93199
-
Track status and wait for completion
heroku pg:wait
-
Promote new Postgre 15 database
heroku pg:promote postgresql-flat-93199
-
Verify promotion:
heroku pg:info
-
Disable maintenance
heroku maintenance:off
-
Verify app with new database at: https://legaldb.creativecommons.org/
-
Destroy v12 database
heroku addons:destroy postgresql-sinuous-94712