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

Fix downgrade path for 2.18.0 #7620

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/update-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ jobs:
PATH="/usr/lib/postgresql/${{ matrix.pg }}/bin:$PATH"
./scripts/test_updates.sh

# Temporary disabled downgrade for 2.18.0
# - name: Downgrade tests PG${{ matrix.pg }}
# if: always()
# run: |
# PATH="/usr/lib/postgresql/${{ matrix.pg }}/bin:$PATH"
# ./scripts/test_downgrade.sh
- name: Downgrade tests PG${{ matrix.pg }}
if: always()
run: |
PATH="/usr/lib/postgresql/${{ matrix.pg }}/bin:$PATH"
./scripts/test_downgrade.sh

- name: Update diff
if: failure()
Expand Down
4 changes: 4 additions & 0 deletions cmake/GenerateScripts.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ function(generate_downgrade_script)
_epilog_files
IGNORE_ERRORS)

if(_downgrade_TARGET_VERSION VERSION_EQUAL 2.18.0)
list(TRANSFORM _epilog_files REPLACE "^.*/hypercore.sql" "${CMAKE_CURRENT_SOURCE_DIR}/pre_install/tam.functions.sql")
endif()

foreach(_downgrade_file ${_downgrade_PRE_FILES})
get_filename_component(_downgrade_filename ${_downgrade_file} NAME)
configure_file(${_downgrade_file} ${_downgrade_INPUT_DIRECTORY}/${_downgrade_filename} COPYONLY)
Expand Down
Loading