huangdijia/laravel-migrate-recreate

migrate-recreate for laravel

v2.1.0 2023-07-08 16:16 UTC

README

Latest Test Latest Stable Version Total Downloads

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