Skip to content

T88 views sequences partitions - #91

Merged
niden merged 10 commits into
masterfrom
T88-views-sequences-partitions
Nov 22, 2026
Merged

niden merged 10 commits into
masterfrom
T88-views-sequences-partitions

Conversation

@niden

@niden niden commented Nov 22, 2026

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • composer test, composer cs and composer analyze all pass
  • I have created a PR for the documentation about this change, if user facing

make:model <view> now writes a model on SQLite too: Phalcon tableExists() does not find a view there (phalcon/cphalcon#17768), so crest also calls viewExists(). make:model --all --views also writes a model for each view, on each database. ForeignKeys::read() reads the views of listViews(), because SQLite does not list them as tables.

Not in this PR: the MariaDB sequences and the PostgreSQL partitions that --all writes. Phalcon lists them as tables; the fix is phalcon/cphalcon#17769. The docs name the limit until the release.

Stacked on #90.

Thanks

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Base automatically changed from T83-mvc-project-no-views to master November 22, 2026 01:00
@niden niden self-assigned this Nov 22, 2026
@niden niden added the enhancement New feature or request label Nov 22, 2026
@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (eb2b86f) #91 (ac44f03) +/-
Coverage 99.8% 99.8% +0.0%
Test Execution Time 9s 10s +1s
Details
  |                     | master (eb2b86f) | #91 (ac44f03) |  +/-  |
  |---------------------|------------------|---------------|-------|
+ | Coverage            |            99.8% |         99.8% | +0.0% |
  |   Files             |               93 |            93 |     0 |
  |   Lines             |             3678 |          3735 |   +57 |
+ |   Covered           |             3671 |          3728 |   +57 |
- | Test Execution Time |               9s |           10s |   +1s |

Code coverage of files in pull request scope (100.0% → 100.0%, patch 100.0%)

Files Coverage +/- Patch Coverage Status
src/Command/Make/ModelCommand.php 100.0% 0.0% 100.0% modified
src/Generator/ForeignKeys.php 100.0% 0.0% 100.0% modified
src/Generator/ModelProperties.php 100.0% 0.0% 100.0% modified
src/Generator/ModelTables.php 100.0% 0.0% 100.0% modified

Reported by octocov

@niden niden mentioned this pull request Nov 22, 2026
3 of 4 tasks
@niden
niden merged commit 6928fb9 into master Nov 22, 2026
20 checks passed
@niden
niden deleted the T88-views-sequences-partitions branch November 22, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant