uax/webman-migrate

Laravel-style migration commands for Webman projects

Maintainers

Package info

github.com/uax/webman-migrate

pkg:composer/uax/webman-migrate

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-04-18 19:56 UTC

This package is auto-updated.

Last update: 2026-04-18 19:58:20 UTC


README

Laravel-style migration commands for Webman projects.

中文说明请见 README.zh-CN.md.

What This Package Provides

The package provides commands from inside the package itself instead of copying command PHP files into the host project.

Available commands:

  • make:migration
  • migrate
  • migrate:rollback
  • migrate:status
  • migrate:publish

Installation

Install with Composer in a Webman project:

composer require uax/webman-migrate

After installation, Webman's plugin hook writes only the plugin config files needed to register commands:

  • config/plugin/uax/webman-migrate/app.php
  • config/plugin/uax/webman-migrate/command.php

The package does not automatically publish migration stubs or migration directories into the project.

Publish Project Resources

Publish resources only when the host project needs local stubs or the migrations directory:

php webman migrate:publish

This publishes:

  • databases/stubs/migration.stub
  • databases/stubs/migration.create.stub
  • databases/stubs/migration.update.stub
  • databases/migrations/.gitkeep

To overwrite already published files:

php webman migrate:publish --force

Uninstall Behavior

When the package is removed through Composer:

composer remove uax/webman-migrate

The uninstall hook removes:

  • config/plugin/uax/webman-migrate/app.php
  • config/plugin/uax/webman-migrate/command.php
  • published files created by this package and still matching their recorded content

The uninstall hook does not blindly delete user-modified published files.