Skip to content

Implementation of a Laravel 8 PR that allows dumping and loading mysql database schemas to avoid re-running unchanged migrations.

License

Notifications You must be signed in to change notification settings

permafrost-dev/laravel-dump-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-dump-schema


This package Implements a set of db:schema artisan commands, used to dump the database schema to or load it from an sql file.

The basis of this code is from Laravel 8.x Pull Request #32275, although currently only the MySQL portion has been implemented.

Note: this code is a work in progress and should not be used in production.


Installation

You can Install this package with composer: composer require permafrost-dev/laravel-dump-schema


Usage

You can either dump or load the database schema, avoiding the need to re-run migrations if they haven't changed:

php artisan db:schema:dump

php artisan db:schema:load


By default, these commands will use the filename database/schema.sql - it can be changed by specifying the --filename flag: --filename=foobar.sql.

About

Implementation of a Laravel 8 PR that allows dumping and loading mysql database schemas to avoid re-running unchanged migrations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages