Search by

microweber-packages / microweber-db-migrator

boksiora

Standalone Laravel database migrator and schema builder. Provides a custom migrator, table builder, and schema installer that can be reused across any Laravel application.

Package info

github.com/microweber-packages/microweber-db-migrator

Homepage

pkg:composer/microweber-packages/microweber-db-migrator

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-03 11:39 UTC

This package is auto-updated.

Last update: 2026-11-03 17:06:25 UTC


README

Standalone Laravel package providing Microweber's resilient database migrator. Extracted from the CMS install system so it can be reused in any Laravel application.

Features

  • MicroweberMigrator – a resilient migrator that wraps Laravel's Migrator, auto-creates the migrations table, and never throws on duplicate-migration errors (so re-running against a partially-migrated database is safe).

The service provider binds it to the container as mw_migrator.

The database installer orchestration lives in microweber-packages/microweber-db-installer, and the array→table builder lives in microweber-packages/microweber-database (MicroweberPackages\Database\Utils::build_table). This package is the migrator only.

Installation

composer require microweber-packages/microweber-db-migrator

The package auto-discovers its service provider. If you need to register manually:

// config/app.php
'providers' => [
    MicroweberPackages\DbMigrator\DbMigratorServiceProvider::class,
],

Quick Start

// Resolve the migrator (bound as `mw_migrator`) and run migrations:
app('mw_migrator')->run(app('migrator')->paths());

License

MIT