2017 © Pedro Peláez
 

library db-drop-tables

A laravel command to drop all mysql database tables

image

mikefunk/db-drop-tables

A laravel command to drop all mysql database tables

  • Friday, October 31, 2014
  • by mikedfunk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,156 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

db-drop-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)

Installation

  1. Install via composer: composer require --dev mike-funk/db-drop-tables:dev-master
  2. Add the service provider to your app/config/app.php in the providers area: 'MikeFunk\DbDropTables\DbDropTablesServiceProvider',
  3. This will not work until you add a connection for the 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'
),

Usage

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)

The Versions

31/10 2014

dev-develop

dev-develop

A laravel command to drop all mysql database tables

  Sources   Download

MIT

The Development Requires

by Mike Funk

04/10 2014

dev-master

9999999-dev

A laravel command to drop all mysql database tables

  Sources   Download

MIT

The Development Requires

by Mike Funk