Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mahmoudmohamedramadan/custom-fresh
A Laravel package to specify the tables that you do not want to drop while refreshing the database.
https://github.com/mahmoudmohamedramadan/custom-fresh
composer custom-fresh custom-migrate laravel mariadb migrations mssql mysql oracle pdo pgsql php postgresql queryobject sql sqlite sqlserver
Last synced: 3 months ago
JSON representation
A Laravel package to specify the tables that you do not want to drop while refreshing the database.
- Host: GitHub
- URL: https://github.com/mahmoudmohamedramadan/custom-fresh
- Owner: mahmoudmohamedramadan
- Created: 2022-05-21T21:42:10.000Z (over 2 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-09-28T15:44:26.000Z (4 months ago)
- Last Synced: 2024-09-28T18:21:57.190Z (4 months ago)
- Topics: composer, custom-fresh, custom-migrate, laravel, mariadb, migrations, mssql, mysql, oracle, pdo, pgsql, php, postgresql, queryobject, sql, sqlite, sqlserver
- Language: PHP
- Homepage:
- Size: 44.9 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Custom Fresh
![Custom Fresh](https://raw.githubusercontent.com/mahmoudmohamedramadan/custom-fresh/refs/heads/main/assets/custom-fresh.png "Custom Fresh")
![License](https://img.shields.io/packagist/l/ramadan/custom-fresh "License")
![Latest Version on Packagist](https://img.shields.io/packagist/v/ramadan/custom-fresh "Latest Version on Packagist")
![Total Downloads](https://img.shields.io/packagist/dt/ramadan/custom-fresh "Total Downloads")- - -
Custom Fresh allows fine-grain control of migrations inside your Laravel project, where you can choose which tables will not be dropped while refreshing the database.
- [Installation](#installation)
- [Usage](#usage)
- [Refreshing migrations](#refreshing-migrations)
- [Example](#example)
- [Credits](#credits)
- [Support me](#support-me)## Installation
Install the package by using [Composer](https://getcomposer.org/):
```SHELL
composer require ramadan/custom-fresh
```## Usage
After installing the package, you will see a new `fresh:custom` command.
### Refreshing migrations
You can exclude specific tables while refreshing the database inside your project:
```SHELL
php artisan fresh:custom posts,foo,bar
```### Example
![Command Example](https://raw.githubusercontent.com/mahmoudmohamedramadan/custom-fresh/refs/heads/main/assets/command-example.png "Command Example")
## Credits
- [Mahmoud Ramadan](https://github.com/mahmoudmohamedramadan)
- [Contributors](https://github.com/mahmoudmohamedramadan/custom-fresh/graphs/contributors)## Support me
- [PayPal](https://www.paypal.com/paypalme/mmramadan496)
## License
The MIT License (MIT).