A bundle for Sequel Pro that lets you generate Laravel migration files from existing tables.
- Clone the repository or download the latest release and unzip the file.
- Double-click on the
ExportToLaravelMigration.spBundle
package within the repository directory to install the bundle. - Launch Sequel Pro!
Connect to a database, and select a table in the left-hand column. From the application menu, choose Bundles › Export › Export to Laravel Migration, or use the keyboard shortcut ⌃⌥⌘M (that's CTRL + OPTION + CMD + M).
The resulting Laravel migration file will be saved to your desktop. You can then move this file into
your Laravel project (usually /database/migrations
) and then run artisan migrate
.
Auto-generated migration files will likely need manual adjustments. Be sure to look at the code before
running artisan migrate
!
Thanks to everyone who has contributed to this project!
Please use Github issues for reporting bugs, and making comments or suggestions.
sequel-pro-laravel-export was written by Colin Viebrock and is released under the MIT License.
Copyright (c) 2016 Colin Viebrock