Xethron / migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
3.32k stars 588 forks source link

Primary key index information stripped? #128

Open Lambik opened 7 years ago

Lambik commented 7 years ago

Hi,

Just wondering why in FieldGenerator.php at about line 112 (or 119) you strip out the $index information for a primary key? In my case this is the 'id' field.

For my purposes (not making a migration file, but just parsing a database structure) I would like to have this information returned somehow.