Xethron / migrations-generator

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

Do not set the column created_at or updated_at to the type timestamps… #168

Open rubennati opened 6 years ago

rubennati commented 6 years ago

… if there exist an index

Use case: If you want generate a migration from a table where exist an index on created_at, the index will be ignored. Now if there is an index on created_at or updadet_at, the type is set to a dateTime with index.