Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298558

[D7] BasicMinimalUpdatePath::testBasicMinimalUpdate is checking wrong key name on PostgreSQL

$
0
0

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.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 298558


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>