Skip to content

Add database migrations and CLI help - #22

Merged
rtcoder merged 1 commit into
masterfrom
release/v0.16.0
Jun 17, 2026
Merged

Add database migrations and CLI help#22
rtcoder merged 1 commit into
masterfrom
release/v0.16.0

Conversation

@rtcoder

@rtcoder rtcoder commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • add database migration base class, runner, repository tracking, and migrate/status/rollback commands
  • add create:migration generator with a file-based stub
  • make help list registered commands and show command-specific usage
  • centralize CLI command discovery in a shared command registry used by the dispatcher and help command
  • normalize CLI command names across colon, dash, underscore, and class-like forms
  • document migrations, CLI help, and command discovery in README, developer docs, and refactoring notes

Tests

  • composer validate --no-check-publish
  • php -l shift
  • find src application tests -name '*.php' -print0 | xargs -0 -n1 php -l
  • composer test
  • ./shift help
  • ./shift help migrate:status
  • ./shift help migrate-status
  • ./shift help migrate_status
  • DB_CONNECTION=sqlite DB_DATABASE=:memory: ./shift migrate:status
  • DB_CONNECTION=sqlite DB_DATABASE=:memory: ./shift migrate
  • DB_CONNECTION=sqlite DB_DATABASE=:memory: ./shift migrate:rollback
  • DB_CONNECTION=sqlite DB_DATABASE=:memory: ./shift migrate-status
  • ./shift health

@rtcoder rtcoder added the v0.16.0 Release v0.16.0 label Jun 17, 2026
@rtcoder
rtcoder merged commit b1f2261 into master Jun 17, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v0.16.0 Release v0.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant