Skip to content

T101 make model all no sequences partitions - #107

Merged
niden merged 2 commits into
masterfrom
T101-make-model-all-no-sequences-partitions
Nov 27, 2026
Merged

niden merged 2 commits into
masterfrom
T101-make-model-all-no-sequences-partitions

Conversation

@niden

@niden niden commented Nov 27, 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 --all with MariaDB sequences and PostgreSQL partitions. The fix is in Phalcon: phalcon/cphalcon#17769 (listTables() gave the sequences and the partitions as tables). It comes in cphalcon 5.24.0 and phalcon/phalcon 6.0.0, and the lock of #106 has it. Crest needs no code change.

Two database tests: on MariaDB, a sequence gives no name to --all. On PostgreSQL, a partitioned table with two partitions gives one name. With cphalcon before 5.24.0, they skip (skipListTablesOnOldCphalcon()). The MySQL suite skips the sequence test: MySQL has no sequences.

The clean-up of the database tests now removes a MariaDB sequence too (table_type SEQUENCE; DROP TABLE removes it), and uses DROP TABLE IF EXISTS: on PostgreSQL, a partitioned table removes its partitions before their turn.

The docs give the versions for the limit of the sequences and the partitions.

Stacked on #106.

Thanks

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@niden niden mentioned this pull request Nov 27, 2026
3 of 4 tasks
Base automatically changed from T87-make-model-sqlite-foreign-keys to master November 27, 2026 20:56
…rtitions in make:model --all

Assisted-by: Claude Code
Assisted-by: Claude Code
@niden
niden force-pushed the T101-make-model-all-no-sequences-partitions branch from 7343e92 to 6d34b25 Compare November 27, 2026 22:19
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report

master (026e7df) T101-make-model-all-no-sequences-partitions (6d34b25) +/-
Coverage 99.8% 99.8% 0.0%
Test Execution Time 8s 9s +1s
Details
  |                     | master (026e7df) | T101-make-model-all-no-sequences-partitions | +/-  |
  |                     |                  |                  (6d34b25)                  |      |
  |---------------------|------------------|---------------------------------------------|------|
  | Coverage            |            99.8% |                                       99.8% | 0.0% |
  |   Files             |               97 |                                          97 |    0 |
  |   Lines             |             4003 |                                        4003 |    0 |
  |   Covered           |             3996 |                                        3996 |    0 |
- | Test Execution Time |               8s |                                          9s |  +1s |

Reported by octocov

@niden
niden merged commit 2156f2e into master Nov 27, 2026
40 checks passed
@niden
niden deleted the T101-make-model-all-no-sequences-partitions branch November 27, 2026 22:27
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