huangdijia / laravel-migrate-recreate
migrate-recreate for laravel
v2.1.0
2023-07-08 16:16 UTC
Requires
- illuminate/console: ^9.0|^10.0
- illuminate/support: ^9.0|^10.0
Requires (Dev)
- huangdijia/php-coding-standard: ^1.1
- orchestra/testbench: ^7.0|^8.0
- phpstan/phpstan: ^1.0
README
Install
composer require huangdijia/laravel-migrate-recreate
Usage
Single
php artisan migrate:recreate users
Output:
Recreate beginning Clean up users migrate records Renaming users to users_bak_at_180913 Migrating Migrating: 2018_08_02_123610_create_users_table Migrated: 2018_08_02_123610_create_users_table Analyzing users and users_bak_at_180913 table structure Restoring data from users_bak_at_180913 Remove users_bak_at_180913 Migrate completed
Multi
php artisan migrate:recreate users another_tables
All
php artisan migrate:recreate-all