PHPackages                             nachopitt/migrations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. nachopitt/migrations

ActiveLibrary[Database &amp; ORM](/categories/database)

nachopitt/migrations
====================

v0.6.0(8mo ago)0125MITPHP

Since Dec 9Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/nachopitt/migrations)[ Packagist](https://packagist.org/packages/nachopitt/migrations)[ Docs](https://github.com/nachopitt/migrations)[ RSS](/packages/nachopitt-migrations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (12)Used By (0)

Migrations
==========

[](#migrations)

Migrations is a Laravel package that adds a new migrate:\* artisan command: import.

You can easily create new migration files by using a SQL import file as an input for the command.

It is based on stock make:migrate artisan command.

Installation
------------

[](#installation)

```
composer require nachopitt/migrations
```

Usage
-----

[](#usage)

```
php artisan migrate:import {file? : The SQL file to be imported}
    {--schema= : The name of the schema}
    {--path= : The location where the migration file should be created}
    {--realpath : Indicate any provided migration file paths are pre-resolved absolute paths}
    {--fullpath : Output the full path of the migration}
    {--squash : Generate one migration file instead of multiple files}
    {--withoutForeignKeyConstraints : Avoid adding foreign key constraints to the migration}
```

If `file` argument is not provided, the default value would be `database_model/${database}.sql`, where `${database}` is the default database name.

### Options

[](#options)

- `--schema`: The name of the schema to be used in the migration.
- `--path`: The location where the migration file should be created.
- `--realpath`: Indicate that the provided migration file paths are pre-resolved absolute paths.
- `--fullpath`: Output the full path of the migration.
- `--squash`: Generate one migration file instead of multiple files. This is useful when you want to combine multiple SQL statements into a single migration.
- `--withoutForeignKeyConstraints`: Avoid adding foreign key constraints to the migration.

Once finished, the new migration files will be placed in the usual migrations directory (`database/migrations`) and will follow the usual naming conventions.

The name of the migration files will depend on the number of `CREATE`, `ALTER` and `DROP` SQL statements.

Features
--------

[](#features)

The `migrate:import` command is able to handle `CREATE`, `ALTER` and `DROP` SQL statements.

When used in conjuntion with a tool like [PHP MySQL Diff](https://github.com/camcima/php-mysql-diff) the process of generating the migration files could be automated somehow.

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance61

Regular maintenance activity

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~101 days

Recently: every ~217 days

Total

11

Last Release

244d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4621fa2139363de306d93a14c525eea77e0977409b444f57d80862fde351cc8c?d=identicon)[nachopitt](/maintainers/nachopitt)

---

Top Contributors

[![nachopitt](https://avatars.githubusercontent.com/u/12923928?v=4)](https://github.com/nachopitt "nachopitt (124 commits)")

---

Tags

laravelmigrationdatabasemysqlsql

### Embed Badge

![Health badge](/badges/nachopitt-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/nachopitt-migrations/health.svg)](https://phpackages.com/packages/nachopitt-migrations)
```

###  Alternatives

[danielme85/laravel-log-to-db

Custom Laravel Log channel handler that can store log events to SQL or MongoDB databases. Uses Laravel native logging functionality.

135934.5k1](/packages/danielme85-laravel-log-to-db)[illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

168237.4k](/packages/illuminated-db-profiler)[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[sarfraznawaz2005/indexer

Laravel package to monitor SELECT queries and offer best possible INDEX fields.

562.7k](/packages/sarfraznawaz2005-indexer)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

101.6k](/packages/ramadan-easy-model)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
