Repository navigation
T87 make model sqlite foreign keys - #106
Merged
Merged
Conversation
Assisted-by: Claude Code
Assisted-by: Claude Code
…no referenced columns Assisted-by: Claude Code
Assisted-by: Claude Code
3 of 4 tasks
This comment has been minimized.
This comment has been minimized.
Code Metrics Report
Details | | master (e599c9f) | T87-make-model-sqlite-foreign-keys | +/- |
| | | (2d8c2b4) | |
|---------------------|------------------|------------------------------------|------|
| Coverage | 99.8% | 99.8% | 0.0% |
| Files | 97 | 97 | 0 |
| Lines | 4003 | 4003 | 0 |
| Covered | 3996 | 3996 | 0 |
- | Test Execution Time | 11s | 12s | +1s |Code coverage of files in pull request scope (100.0% → 100.0%)
Reported by octocov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello!
In raising this pull request, I confirm the following:
composer test,composer csandcomposer analyzeall passSQLite foreign keys in
make:model. The fixes are in Phalcon: phalcon/cphalcon#17814 (a composite key gave one key for each column) and phalcon/cphalcon#17815 (a key with no referenced columns gavenullfor the column). Both come in cphalcon 5.24.0 andphalcon/phalcon6.0.0. Crest needs no code change.The lock moves
phalcon/phalcontov6.0.xata845ec7, which has the sync commits of the two fixes and of phalcon/cphalcon#17816. No other package changes.On SQLite, the composite-key tests of MySQL and PostgreSQL now run too, with a real key in the SQLite tables
linesandshipments. A new test checks thatREFERENCES customersgives a relation tocustomers(id). With cphalcon before 5.24.0, these tests skip:skipCompositeKeyOnOldCphalcon()now covers SQLite too, andskipKeyWithNoColumnsOnOldCphalcon()is new. The v5 CI cells install cphalcon 5.23.0 until #100, so these tests run in the v6 cells.Crest still skips a key with no referenced columns from an older Phalcon. The three tests of that skip get the old form from
ListedReferencesSqlite(wasCompositeKeySqlite), so they run on each version.CompositeKeyFrontand the two SQLite composite-key tests with the test adapter are removed. phpstan has one ignore for thenullcolumn in that test.The docs give the versions for the two SQLite limits.
Thanks