db-pgsql icon indicating copy to clipboard operation
db-pgsql copied to clipboard

Test `Schema::getTableUniques()`

Open Tigrov opened this issue 2 years ago • 1 comments

Schema::getTableUniques() returns only constraints of uniques but not unique indexes.

https://github.com/yiisoft/db-pgsql/actions/runs/5908951885/job/16028983991?pr=312

There was 1 failure:

1) Yiisoft\Db\Pgsql\Tests\SchemaTest::testTableUniques
Failed asserting that actual size 2 matches expected size 3.

/home/runner/work/db-pgsql/db-pgsql/tests/SchemaTest.php:570
Q A
Is bugfix? ✔️/❌
New feature?
Breaks BC? ✔️/❌
Fixed issues #742

Tigrov avatar Aug 19 '23 02:08 Tigrov

PR Summary

  • New Test Method Addition A new method for testing, named testTableUniques, has been added to the SchemaTest.php file. The purpose of this test method is to fetch unique constraints from a table and verify their column names.

  • New Table Incorporated A new table named table_unique_index has been successfully added to the pgsql.sql file. This table contains multiple unique constraints defined within it.

what-the-diff[bot] avatar Aug 19 '23 02:08 what-the-diff[bot]