Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Creating a table with $schema['primary key'] = [];
is broken on PostgreSQL.
Proposed resolution
Fix it!
This requires #2881522: Add a Schema::findPrimaryKeyColumns method to remove database specific logic from test for test coverage.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2976493-6.patch | 2.29 KB | tstoeckler |
#6 | 2976493-6--tests-only.patch | 1.52 KB | tstoeckler |
Comments
Comment #2
tstoecklerHere we go.
Comment #3
daffie CreditAttribution: daffie commented#2881522: Add a Schema::findPrimaryKeyColumns method to remove database specific logic from test has landed. Started the testbot for the for humans patch.
Comment #5
daffie CreditAttribution: daffie commentedComment #6
tstoecklerHere we go. Instead of actually rebasing, I just recreated the patch from scratch as it is so small, thus no interdiff for the test changes due to
findPrimaryKeyColumns()
now being protected.Comment #7
daffie CreditAttribution: daffie commentedLooks good to me.
The test only patch show that there is a bug and the full patch fixes that bug.
The code for this patch comes from is parent issue: #2881522: Add a Schema::findPrimaryKeyColumns method to remove database specific logic from test
For me it is RTBC.
Comment #8
alexpottCrediting @daffie for reviewing the issue.
Comment #9
alexpottCommitted c4923ea and pushed to 8.6.x. Thanks!