-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d991035
commit 89b8ca0
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ Homestead.yaml | |
Homestead.json | ||
/.vagrant | ||
.phpunit.result.cache | ||
|
||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# laravel-mysqldump | ||
A laravel package with artisan commands to dump and import mysql databases or tables | ||
|
||
## Purpose | ||
|
||
* Easily dump whole databases or specific tables, with `artisan mysql:export` | ||
* Easily import, with `artisan mysql:import` | ||
* Strip content from tables, for example, strip the customer data but keep the product catalog. | ||
|
||
|
||
## Credits | ||
|
||
This package makes heavy use of [spatie/db-dumper](https://github.com/spatie/db-dumper). The original inspiration is based on [magerun2](https://github.com/netz98/n98-magerun2) and [mage-db-sync](https://github.com/jellesiderius/mage-db-sync). | ||
|
||
## Setup | ||
|
||
Install with: | ||
```bash | ||
composer require corrivate/laravel-mysqldump | ||
``` | ||
|
||
## Configuration | ||
In your `config/database.php` you can add configuration for stripping tables: | ||
|
||
![](docs/config.png) | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.