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

[OSDEV-1515] Database. Upgrade the PostgreSQL version to 16. #490

Merged

Conversation

vladsha-dev
Copy link
Contributor

@vladsha-dev vladsha-dev commented Jan 24, 2025

[OSDEV-1515] Upgraded PostgreSQL version to 16.

  • Upgraded the PostgreSQL version from 13 to 16 for the database used in local development, DB anonymization, DB restore setup, and environments in the AWS cloud. Additionally, the pg_trgm extension has been upgraded to version 1.6 based on the available extension version for PostgreSQL 16.3 in AWS RDS.
  • 0163_refresh_pg_statistic_and_upgrade_postgres_extensions.py - Updated the SQL script within the migration that upgrades the DB extension versions to handle previously failure cases when a higher version is available for upgrade or when the extension is not installed. This is primarily useful for local development or DB resets in the Development environment, where migrations are applied from scratch, one by one. This fix will not negatively affect other environments, as the migration has already been applied and will not be reapplied. Additionally, the changes are backward compatible.
  • 0164_refresh_pg_statistic_and_upgrade_postgres_extensions_after_db_upgrade_to_postgres_16.py - Created the migration that refreshes the pg_statistic table after the upgrade to PostgreSQL 16 and upgrades the pg_trgm extension to version 1.6. The SQL script within the migration that upgrades the DB extension versions handles previously failure cases where a higher version is available for upgrade or where the extension is not installed.

@vladsha-dev vladsha-dev self-assigned this Jan 24, 2025
@vladsha-dev vladsha-dev marked this pull request as draft January 24, 2025 17:36
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:36 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:38 — with GitHub Actions Inactive
Copy link

barecheck bot commented Jan 24, 2025

React App | Jest test suite - Code coverage report

Total: 28.37%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:42 — with GitHub Actions Inactive
Copy link

barecheck bot commented Jan 24, 2025

Dedupe Hub App | Unittest test suite - Code coverage report

Total: 56.14%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:43 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:43 — with GitHub Actions Inactive
Copy link

barecheck bot commented Jan 24, 2025

Contricleaner App | Unittest test suite - Code coverage report

Total: 98.91%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

Copy link

barecheck bot commented Jan 24, 2025

Countries App | Unittest test suite - Code coverage report

Total: 100%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 24, 2025 17:53 — with GitHub Actions Inactive
Copy link

barecheck bot commented Jan 24, 2025

Django App | Unittest test suite - Code coverage report

Total: 80.38%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 27, 2025 16:57 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 27, 2025 16:57 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 14:21 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 14:21 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 14:31 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:13 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:15 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:20 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:21 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:21 — with GitHub Actions Inactive
@mazursasha1990 mazursasha1990 self-requested a review January 29, 2025 16:23
Copy link
Contributor

@mazursasha1990 mazursasha1990 left a comment

Choose a reason for hiding this comment

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

LGTM

@vladsha-dev vladsha-dev enabled auto-merge (squash) January 29, 2025 16:30
@vladsha-dev vladsha-dev temporarily deployed to Quality Environment January 29, 2025 16:30 — with GitHub Actions Inactive
@vladsha-dev vladsha-dev merged commit d702583 into main Jan 29, 2025
21 checks passed
@vladsha-dev vladsha-dev deleted the OSDEV-1515-database-upgrade-the-postgresql-version-to-17 branch January 29, 2025 16:31
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.

3 participants