Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laravel-migration-snapshot

> 后端框架
Open source

Simplify and accelerate applying many migrations at once using a flattened dump of the database schema and migrations

176 stars0 likes3 views
WebsiteGitHub

About

Simplify and accelerate applying many migrations at once using a flattened dump of the database schema and migrations

Laravel Migration Snapshot

Simplify and accelerate applying many migrations at once using a flattened dump of the database schema and migrations, similar in spirit to Rails' schema.rb.

Works with the mysql, pgsql, and sqlite database drivers.

Installation

You can install the package via composer:

bash
composer require --dev orisintel/laravel-migration-snapshot

Database command-line utilities (such as mysqldump and mysql) must be in the path where Artisan will be run.

Configuration

Put migration-snapshot.php into config with:

bash
php artisan vendor:publish --provider="\OrisIntel\MigrationSnapshot\ServiceProvider"

Usage

Implicitly migrate as load from an earlier, flattened copy:

bash
php artisan migrate

(When migrations table is empty and migrating a configured environment; defaults to 'development', 'local', and 'testing'.)

Migrate without loading from, or dumping to, flattened copy:

bash
MIGRATION_SNAPSHOT=0  php artisan migrate

Update the flattened SQL file:

bash
php artisan migrate:dump

Load from the flattened SQL file, dropping any existing tables and views:

bash
php artisan migrate:load

Testing

bash
composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

  • Paul R. Rogers
  • All Contributors

License

The MIT License (MIT). Please see License File for more information.

Issues· 5 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPlaravelschema-migrations

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架