Gatix said:
Try this:
Looks like Github Xethron/migrations-generator is appealing and stands on giants shoulder (see related composer file for more details)!
you don't have to use migrations. It's just a tool and it's up to the user to use it or not.
By default the timestamps created_at and updated_at are set.
Even if you use migration you don't necessarily want them to be added to each table because they might not make sense (eg pivot tables).
You can disable the setting of the timestamps by adding to your/each Model class:
public static $timestamps = false;
Ok.
I couldn't get the other solution to work but for my project I don't think it's necessary.
On my next project I will try them out from the start to learn more about them.
Thanks for your help people.
frezno said:
you don't have to use migrations. It's just a tool and it's up to the user to use it or not.
By default the timestamps created_at and updated_at are set.
Even if you use migration you don't necessarily want them to be added to each table because they might not make sense (eg pivot tables).
You can disable the setting of the timestamps by adding to your/each Model class:
public static $timestamps = false;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community