yiisoft / yiisoft/db

Remove unused schema methods

Open
#1,175 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

severity:BC breaking
Dominant language
PHP
Stars
216
Forks
51
Avg merge
3d 10h
Merged PRs (30d)
2

Description

Description

SchemaInterface::

  • getSchemaChecks()
  • getSchemaDefaultValues()
  • getSchemaIndexes()
  • getSchemaPrimaryKeys()
  • getSchemaUniques()

https://github.com/yiisoft/db/blob/f26a751b0feefdf6ca5249ebf46ab1d5941659ae/src/Constraint/ConstraintSchemaInterface.php#L16-L89

Package version

2

PHP version

any

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the referenced src/Constraint/ConstraintSchemaInterface.php section and search the repository for all five schema methods. Check their declarations and usages before removing them, updating any affected references. Done means the unused methods and their remaining references are removed without breaking the database package tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
databases
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.