Problem/Motivation
There is a test failure in Basic minimal profile update path tests in testBasicMinimalUpdate()
on PostgreSQL.
The failure looks like this:
fail: [Other] Line 582 of modules/simpletest/tests/upgrade/upgrade.test:
Unique key on {date_formats} exists
The issue with this is that db_index_exists()
on PostgreSQL will check the index name with the pattern [table]_[name]_idx, but the real unique key name is [table]_[name]_key (as it is not an index, but a unique key). So the check in PostgreSQL will never succeed. MySQL and SQLite are not suffixing indexes/keys so they are not affected by this.
Steps to reproduce
Run Basic minimal profile update path tests in PostgreSQL.