@@ -53,15 +53,10 @@ jobs:
53
53
54
54
- name : Build timescaledb sqlfiles
55
55
run : |
56
- downgrade_to =$(grep '^downgrade_to_version = ' version.config | sed -e 's!^[^=]\+ = !!')
56
+ previous_version =$(grep '^previous_version = ' version.config | sed -e 's!^[^=]\+ = !!')
57
57
git fetch --tags
58
58
./bootstrap -DGENERATE_DOWNGRADE_SCRIPT=ON
59
- # We use downgrade_to_version instead of update_from_version because
60
- # when the release PR for a new version has been merged to main but
61
- # the version is not tagged yet update_from_version will not exist yet.
62
- # In all other situations update_from_version and downgrade_to_version
63
- # should point to the same version.
64
- git checkout ${downgrade_to}
59
+ git checkout ${previous_version}
65
60
make -C build sqlfile sqlupdatescripts
66
61
git checkout ${GITHUB_SHA}
67
62
make -C build sqlfile sqlupdatescripts
@@ -70,19 +65,19 @@ jobs:
70
65
- name : Run pgspot
71
66
run : |
72
67
version=$(grep '^version = ' version.config | sed -e 's!^[^=]\+ = !!')
73
- downgrade_to =$(grep '^downgrade_to_version = ' version.config | sed -e 's!^[^=]\+ = !!')
68
+ previous_version =$(grep '^previous_version = ' version.config | sed -e 's!^[^=]\+ = !!')
74
69
75
70
# Show files used
76
- ls -la build/sql/timescaledb--${version}.sql build/sql/timescaledb--${downgrade_to }--${version}.sql \
77
- build/sql/timescaledb--${version}--${downgrade_to }.sql
71
+ ls -la build/sql/timescaledb--${version}.sql build/sql/timescaledb--${previous_version }--${version}.sql \
72
+ build/sql/timescaledb--${version}--${previous_version }.sql
78
73
79
74
# The next pgspot execution tests the installation script by itself
80
75
pgspot ${{ env.PGSPOT_OPTS }} build/sql/timescaledb--${version}.sql
81
76
# The next pgspot execution tests the update script to the latest version
82
77
# we prepend the installation script here so pgspot can correctly keep track of created objects
83
- pgspot ${{ env.PGSPOT_OPTS }} -a build/sql/timescaledb--${downgrade_to }.sql \
84
- build/sql/timescaledb--${downgrade_to }--${version}.sql
78
+ pgspot ${{ env.PGSPOT_OPTS }} -a build/sql/timescaledb--${previous_version }.sql \
79
+ build/sql/timescaledb--${previous_version }--${version}.sql
85
80
# The next pgspot execution tests the downgrade script to the previous version
86
81
# we prepend the installation script here so pgspot can correctly keep track of created objects
87
82
pgspot ${{ env.PGSPOT_OPTS }} -a build/sql/timescaledb--${version}.sql \
88
- build/sql/timescaledb--${version}--${downgrade_to }.sql
83
+ build/sql/timescaledb--${version}--${previous_version }.sql
0 commit comments