Skip to content

Remove Schema::getSchemaDefaultValues() - #428

Open
KalimeroMK wants to merge 2 commits into
yiisoft:masterfrom
KalimeroMK:remove-unused-schema-methods
Open

Remove Schema::getSchemaDefaultValues()#428
KalimeroMK wants to merge 2 commits into
yiisoft:masterfrom
KalimeroMK:remove-unused-schema-methods

Conversation

@KalimeroMK

@KalimeroMKKalimeroMK commented Aug 2, 2026

Copy link
Copy Markdown

Follow-up to yiisoft/db#1175, which removes getSchemaDefaultValues() from ConstraintSchemaInterface. This override existed only to satisfy that declaration by throwing NotSupportedException, so it implements nothing once the declaration is gone.

Unlike the other drivers, SQLite does not break without this — the override keeps the call resolvable, so this is cleanup and can merge in any order. loadTableDefaultValues() still throws and is covered through getTableDefaultValues().

QA
Is bugfix?
New feature?
Breaks BC?✔️
Fixed issuesyiisoft/db#1175

The method existed only to satisfy ConstraintSchemaInterface by throwing
NotSupportedException. yiisoft/db removes that declaration, leaving this
override with nothing to implement.
BREAKING CHANGE: Yiisoft\Db\Sqlite\Schema::getSchemaDefaultValues() is gone.
Use getTableDefaultValues() per table instead, which SQLite does support.
Refs yiisoft/db#1175
@codecov

codecovBot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.48%. Comparing base (cb067f1) to head (c20b98c).

Additional details and impacted files
@@ Coverage Diff @@## master #428 +/- ##
============================================
- Coverage 98.48% 98.48% -0.01% + Complexity 329 328 -1 
============================================
Files 22 22 Lines 1055 1053 -2 ============================================
- Hits 1039 1037 -2 
Misses 16 16 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for freeto 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.

2 participants

@KalimeroMK@Tigrov