Skip to content

Instantly share code, notes, and snippets.

View jonphipps's full-sized avatar

Jon Phipps jonphipps

  • Metadata Management Associates
  • Ottawa, Ontario Canada
View GitHub Profile
@jonphipps
jonphipps / DbmigrateController.php
Last active August 29, 2015 14:26 — forked from bruceoutdoors/DbmigrateController.php
Laravel 4 Convert existing MySQL database to migrations. This is a fork of Christopher Pitt's work http://laravelsnippets.com/snippets/convert-an-existing-mysql-database-to-migrations, which is based off michaeljcalkins's work at http://paste.laravel.com/1jdw#sthash.0nEgQzQR.dpuf. His original source code doesn't really work out of the box in my…
<?php
/* * **
*
* This script converts an existing MySQL database to migrations in Laravel 4.
*
* 1. Place this file inside app/controllers/
*
* 2. In this file, edit the index() method to customize this script to your needs.
* - inside $migrate->ignore(), you pass in an array of table