Mercurial > gemma
comparison schema/run_tests.sh @ 361:f5087cebc740
Enforce PostgreSQL identifier length on username
A name longer than 63 bytes will be truncated on role creation,
rendering user_profiles.username and the actual name of the role
out of sync. The new CHECK constraint prevents such situation.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 08 Aug 2018 16:31:23 +0200 |
parents | 5b03f420957d |
children | 3f803d64a6ee |
comparison
equal
deleted
inserted
replaced
360:6d145ee0a097 | 361:f5087cebc740 |
---|---|
14 # Drop test roles, add test data and run tests | 14 # Drop test roles, add test data and run tests |
15 psql -qXv ON_ERROR_STOP= -v -d gemma_test \ | 15 psql -qXv ON_ERROR_STOP= -v -d gemma_test \ |
16 -c 'SET client_min_messages TO WARNING' \ | 16 -c 'SET client_min_messages TO WARNING' \ |
17 -c "DROP ROLE IF EXISTS $TEST_ROLES" \ | 17 -c "DROP ROLE IF EXISTS $TEST_ROLES" \ |
18 -f tap_tests_data.sql \ | 18 -f tap_tests_data.sql \ |
19 -c 'SELECT plan(43)' \ | 19 -c 'SELECT plan(44)' \ |
20 -f auth_tests.sql \ | 20 -f auth_tests.sql \ |
21 -f manage_users_tests.sql \ | 21 -f manage_users_tests.sql \ |
22 -c 'SELECT * FROM finish()' | 22 -c 'SELECT * FROM finish()' |