- Issue created by @tgauges
- Merge request !10587Issue #3494471: Use str_starts_with instead of str_contains in \Drupal\pgsql\Driver\Database\pgsql\Schema::renameTable β (Closed) created by tgauges
- π©πͺGermany tgauges
I implemented my proposed resolution, please review.
- Merge request !10591Draft: Issue #3494471 for 10.3.x: Use str_starts_with instead of str_contains in \Drupal\pgsql\Driver\Database\pgsql\Schema::renameTable β (Closed) created by tgauges
- π©πͺGermany tgauges
tgauges β changed the visibility of the branch 3494471-10.3.x-psql-rename-str-starts-with to hidden.
The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- π©πͺGermany tgauges
The Needs Review Queue Bot should not test MR 10591 since that one targets 10.3.x. It does not apply to 11.x by design.
It also is a draft MR and hidden.
- πΊπΈUnited States smustgrave
MR should be updated for 11.x as the current development branch.
Also can we get a test case showing this issue.
- π©πͺGermany tgauges
I closed the MR https://git.drupalcode.org/project/drupal/-/merge_requests/10591 because it is irrelevant. Please review https://git.drupalcode.org/project/drupal/-/merge_requests/10587 which also contains a test which fails without the fix.
Are more tests needed?
- πΊπΈUnited States smustgrave
1) /builds/issue/drupal-3494471/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php:581 Undefined array key 1 Triggered by: * Drupal\Tests\pgsql\Kernel\pgsql\SchemaTest::testRenameTableWithNameContainingDrupalUnderscoreAndMultipleIndexes (2 times) /builds/issue/drupal-3494471/core/modules/pgsql/tests/src/Kernel/pgsql/SchemaTest.php:371
No think the test coverage is good.
Test coverage looks good and other change is a 1 liner. So think this is good.
- π©πͺGermany tgauges
tgauges β changed the visibility of the branch 3494471-10.4.x-psql-rename-str-starts-with to hidden.
- Merge request !11193Issue #3494471 for 10.4.x: Use str_starts_with instead of str_contains in \Drupal\pgsql\Driver\Database\pgsql\Schema::renameTable β (Closed) created by tgauges
- π©πͺGermany tgauges
tgauges β changed the visibility of the branch 3494471-10.4.x-psql-rename-str-starts-with to hidden.
- Issue was unassigned.
- Status changed to RTBC
27 days ago 5:32pm 10 March 2025 - π¬π§United Kingdom catch
Committed/pushed to 11.x and cherry-picked to 11.1.x, 10.5.x, and 10.4.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.