PromucFlow_constructor/deploy/docker/fs/opt/appsmith
Shrikant Sharat Kandula 26c0f07e14
chore: Add script to upgrade Postgres 13 data to 14 (#34317)
We're upgrading embedded Postgres from 13 to 14, and this PR includes a
script to perform the upgrade of the data folder from v13 schema to v14
schema. This script temporarily installs Postgres 13, if not available,
for the upgrade process, so will continue to work when and if we choose
to remove `postgresql-13` from the base image.

Tested this manually as well, running an Appsmith with Postgres 13,
executing some workflows via webhook, getting some run data generated,
then upgrading Postgres with the script in this PR, and ensuring that
the workflow run history is still there and visible on the UI exactly
the same. It is.

No conflicts or additional changes needed on EE. [All server and Cypress
tests pass on EE](https://github.com/appsmithorg/appsmith-ee/pull/4493).


![shot-2024-06-20-02-13-26](https://github.com/appsmithorg/appsmith/assets/120119/9bb60e3a-6cc9-4df9-9064-caead78729a6)


**/test sanity**



<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/9590240540>
> Commit: 9c75da53f871ffb912015c18a7504327cba88f2c
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9590240540&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity`

<!-- end of auto-generated comment: Cypress test results  -->





<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added automation script for upgrading PostgreSQL to the latest
version.
- Introduced testing script for PostgreSQL upgrades in Docker
environments.

- **Improvements**
- Upgraded PostgreSQL from version 13 to 14 in Docker setup, ensuring
compatibility and performance enhancements.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-21 19:34:08 +05:30
..
templates chore: Remove mockdb as it isn't working anyway (#34266) 2024-06-17 12:45:49 +05:30
utils chore: fix braces version (#34282) 2024-06-18 14:58:17 +05:30
auto_heal.sh chore: Fix auto heal script crash if curl times out (#29472) 2023-12-08 15:22:26 +05:30
caddy-reconfigure.mjs chore: Switch to vanilla Caddy, when rate limiting is disabled (#33387) 2024-05-24 13:11:56 +05:30
entrypoint.sh chore: Add script to upgrade Postgres 13 data to 14 (#34317) 2024-06-21 19:34:08 +05:30
generate-infra-details.sh chore: Update incorrect docker tagging and add fargate tag in deployment telemetry (#33472) 2024-05-27 17:16:13 +05:30
healthcheck.sh chore: Health check only backend, caddy and RTS (#32891) 2024-04-25 10:36:13 +05:30
install_docker.sh chore: replaced decommisioned urls with new ones (#27786) 2023-10-05 12:07:18 +05:30
mongodb-fixer.sh chore: Use tlog instead of echo in more places (#34182) 2024-06-11 20:10:33 +05:30
pg-upgrade.sh chore: Add script to upgrade Postgres 13 data to 14 (#34317) 2024-06-21 19:34:08 +05:30
pull_resource.sh
run-caddy.sh chore: Switch to vanilla Caddy, when rate limiting is disabled (#33387) 2024-05-24 13:11:56 +05:30
run-java.sh chore: Use tlog instead of echo in more places (#34182) 2024-06-11 20:10:33 +05:30
run-postgres.sh chore: Add Postgres bin to PATH (#34265) 2024-06-17 12:53:34 +05:30
run-starting-page-init.sh feat: Caddy (#28081) 2023-12-05 10:47:36 +05:30
run-with-env.sh chore: Use tlog instead of echo in more places (#34182) 2024-06-11 20:10:33 +05:30
start_app.sh
starting-page-init.py feat: add ability to change application logs location (#31926) 2024-03-20 19:45:48 +05:30