Download the PHP package exolnet/laravel-db-upgrade without Composer
On this page you can find all versions of the php package exolnet/laravel-db-upgrade. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download exolnet/laravel-db-upgrade
More information about exolnet/laravel-db-upgrade
Files in exolnet/laravel-db-upgrade
Package laravel-db-upgrade
Short Description Artisan command to migrate an existing production database structure to use Laravel migrations
License MIT
Homepage https://github.com/eXolnet/laravel-db-upgrade
Informations about the package laravel-db-upgrade
laravel-db-upgrade
Artisan command to migrate an existing production database structure to use Laravel migrations
Installation
Require this package with composer:
The package will automatically register its service provider.
Publish the config file to config/db-upgrade.php
using:
Review and update the default configuration according to your use case (see Usage section for more information).
Usage
- Create migrations to obtain your current database structure;
- Configure
last_migration_for_upgrade
to points to the last migration that represent your current database structure; - Optionally, you can add migrations to update your old structure;
- Run the
php artisan db:upgrade
command.
The db:upgrade
command will perform the following actions:
- Backup your data;
- Run your migrations up to the
last_migration_for_upgrade
migration; - Restore your data;
- Run remaining migration.
Testing
To run the phpUnit tests, please use:
Contributing
Please see CODE OF CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Alexandre D'Eschambeault
- All Contributors
License
This code is licensed under the MIT license. Please see the license file for more information.
All versions of laravel-db-upgrade with dependencies
illuminate/console Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0