2017 © Pedro Peláez
 

library l4-schemad-migrations

Generate a schema file for Laravel migration with a MySQL database.

image

kreitje/l4-schemad-migrations

Generate a schema file for Laravel migration with a MySQL database.

  • Thursday, June 5, 2014
  • by kreitje
  • Repository
  • 1 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel4 Schemad Migrations

This will generate a schema.php file in your app/database/migrations file based on your current database schema. This only works with MySQL. When your run php artisan migrate it will automatically generate the schema file for you after the migrations have run., (*1)

This code is based off of http://laravelsnippets.com/snippets/convert-an-existing-mysql-database-to-migrations by michaeljcalkins, (*2)

Setup

Modify your config/app.php and update the providers to:, (*3)

Comment out the following line:, (*4)

'Illuminate\Database\MigrationServiceProvider',

Add in the following line:, (*5)

'Kreitje\L4SchemadMigrations\L4SchemadMigrationsServiceProvider'

The Versions

05/06 2014

dev-master

9999999-dev

Generate a schema file for Laravel migration with a MySQL database.

  Sources   Download

MIT

The Requires

 

by Jeff Kreitner

laravel schema