Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Schema::getTableUniques() #312

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tigrov
Copy link
Member

@Tigrov Tigrov commented Aug 19, 2023

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

@what-the-diff
Copy link

what-the-diff bot commented Aug 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant