dev-develop
dev-developA laravel command to drop all mysql database tables
MIT
The Development Requires
by Mike Funk
dev-master
9999999-devA laravel command to drop all mysql database tables
MIT
The Development Requires
by Mike Funk
Wallogit.com
2017 © Pedro Peláez
A laravel command to drop all mysql database tables
In development, schema can be constantly changing. You don't want to have to add a migration file for every single column modification/addition/removal, do you? So just run this, then artisan migrate, then artisan db:seed. Or wrap those up in a phing command (or another artisan command) and do them in one shot., (*1)
composer require --dev mike-funk/db-drop-tables:dev-master
app/config/app.php in the providers area: 'MikeFunk\DbDropTables\DbDropTablesServiceProvider',
mysql_information_schema database in app/config/database.php:'mysql_information_schema' => array(
'driver' => 'mysql',
'host' => 'my_host_name'
'database' => 'INFORMATION_SCHEMA',
'username' => 'my_db_username'
'password' => 'my_db_password'
),
Call the command from within laravel with php artisan db:drop-tables. It will confirm that you want to drop all of your tables in your MySQL database., (*2)
A laravel command to drop all mysql database tables
MIT
A laravel command to drop all mysql database tables
MIT