Package Data | |
---|---|
Maintainer Username: | kreitje |
Maintainer Contact: | kreitje@gmail.com (Jeff Kreitner) |
Package Create Date: | 2014-03-13 |
Package Last Update: | 2014-06-05 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-20 03:01:36 |
Package Statistics | |
---|---|
Total Downloads: | 10 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
#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.
This code is based off of http://laravelsnippets.com/snippets/convert-an-existing-mysql-database-to-migrations by michaeljcalkins
##Setup
Modify your config/app.php and update the providers to:
Comment out the following line:
'Illuminate\Database\MigrationServiceProvider',
Add in the following line:
'Kreitje\L4SchemadMigrations\L4SchemadMigrationsServiceProvider'