Skip to content

Commit 44f6922

Browse files
committed
(PDB-4832) Bump schema migrations in delete-reports
And bump it in the ext tests for upgrade and exit
1 parent 9186368 commit 44f6922

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/test/upgrade-and-exit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ psql -U puppetdb puppetdb -c 'select max(version) from schema_migrations;' \
6969
> "$tmpdir/out"
7070
cat "$tmpdir/out"
7171
# This must be updated every time we add a new migration
72-
grep -qE ' 75$' "$tmpdir/out"
72+
grep -qE ' 76$' "$tmpdir/out"
7373

7474
test ! -e "$PDBBOX"/var/mq-migrated

resources/ext/cli/delete-reports.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ chown "$pg_user:$pg_user" "$tmp_dir"
8787

8888
# Verify that the PuppetDB schema version it the expected value
8989
# so that we do not incorrectly delete the report data.
90-
expected_schema_ver=75
90+
expected_schema_ver=76
9191
su - "$pg_user" -s /bin/sh -c "$psql_cmd -p $pg_port -d $pdb_db_name -c 'COPY ( SELECT max(version) FROM schema_migrations ) TO STDOUT;' > $tmp_dir/schema_ver"
9292
actual_schema_ver="$(cat "$tmp_dir/schema_ver")"
9393
if test "$actual_schema_ver" -ne $expected_schema_ver; then

0 commit comments

Comments
 (0)