百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

laravel-migration-snapshot

> 后端框架
开源

使用数据库架构和迁移的扁平备份,简化并加速同时应用多个迁移

176 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

使用数据库架构和迁移的扁平备份,简化并加速同时应用多个迁移

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPlaravelschema-migrations

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

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