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: 4 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 (about 3 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-11-13T08:02:18.000Z (7 months ago)
- Last Synced: 2025-02-08T01:34:12.513Z (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: 273 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Custom Fresh



- - -
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.
> [!WARNING]
> Always consider upgrading the package to the [latest](https://github.com/mahmoudmohamedramadan/custom-fresh/releases/latest) version, which is the most stable release.- [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.
> [!NOTE]
> The package also guesses the additional migration files that add a special column (e.g., `****_**_**_******_adds_is_admin_column_to_users_table.php`).### Refreshing migrations
You can exclude specific tables while refreshing the database inside your project:
```SHELL
php artisan fresh:custom users,foo
```> [!TIP]
> Do not forget to always use the `-h` of the command to check out all supported options.### 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).