A Sequel Pro / Sequel Ace bundle to generate Laravel migration files from existing tables.
A bundle for Sequel Pro and
Sequel Ace that lets you generate
Laravel migration files from existing tables.
./build.sh
to create Sequel Pro and Sequel Ace versions of the bundlebuild
directoryConnect 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 in a new directory called SequelProLaravelExport on your desktop.
You can then move this file into your Laravel project (usually /database/migrations
) and then run artisan migrate
.
The Sequel Ace bundle will only work with version 3.0.0 and later of Sequel Ace.
You will also need to give Sequel Ace permission to write to the Desktop folder
via the application’s preferences:
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.
See CONTRIBUTING.md for how to contribute changes.
sequel-pro-laravel-export
was written by Colin Viebrock and is released under the
MIT License.
Copyright © 2016 Colin Viebrock