Skip to content

Commit 223a8b3

Browse files
authored
Merge pull request #12325 from meaksh/master-fix-schema-migration-tests
Fix schema migration tests after bumping versions
2 parents be3de6d + 2008dff commit 223a8b3

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

susemanager-utils/testing/docker/scripts/schema_migration_test_pgsql.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ if [ -d /etc/sysconfig/rhn/postgres -a ! -e /usr/share/susemanager/db/postgres ]
6363
ln -s /etc/sysconfig/rhn/postgres /usr/share/susemanager/db/postgres
6464
fi
6565

66-
# We need SUPERUSER role to install the old schema as they add extensions.
67-
# evr_t also didn't exist when installing those packages.
68-
# This basically reproduces the upgrade from an existing DB setup.
69-
su - postgres -c "echo 'ALTER ROLE spacewalk WITH SUPERUSER;
70-
DROP TYPE IF EXISTS evr_t CASCADE;' | psql -d susemanager"
71-
7266
spacewalk-sql /usr/share/susemanager/db/postgres/main.sql
7367

7468
# this copy the latest schema from the git into the system

0 commit comments

Comments
 (0)