Problem/Motivation
In #3123832: [META] Fix @todo items referencing closed issues we've discovered there's a @todo in \Drupal\Tests\pgsql\Kernel\pgsql\SchemaTest::testPgsqlSequences.
This @todo is linked to an d.o. issue that is already closed: #1060476: Multiple issues when PostgreSQL is used with non-public schema.
This is the @todo:
// @todo replace 'public.' with defaultSchema when issue https://www.drupal.org/i/1060476 lands.
$this->assertEquals('public.' . $this->connection->getPrefix() . 'sequence_test_uid_seq', $sequence_name);
Steps to reproduce
Proposed resolution
Use $schema = $options['schema'] ?? 'public'; as introduced in #1060476: Multiple issues when PostgreSQL is used with non-public schema.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3377381
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3377381-change-hardcoded-schema
changes, plain diff MR !4492
Comments
Comment #3
spokjeComment #4
smustgrave commentedAll green and simple cleanup.
Comment #6
quietone commentedI went looking for when the @todo was originally added to learn more. It seems to have been #3028706-65: New serial columns do not own sequences but I did see any discussion there about it.
Yes, this change does what the @todo intended.
Committed ebb63a3 and pushed to 11.x. Thanks!