Disabling timestamps in wn:resource
denizdogan opened this issue · 7 comments
denizdogan commented
Is there any way to generate resources with public $timestamps = false;
on the models and similar for the migration?
webNeat commented
Hello,
I am working on version 2.0 of the generators and I will try to make it possible 😄
webNeat commented
Hello @TCB13 , I have just released version 1.2.0 But unfortunately I didn't include this feature as there was others requested before.
TCB13 commented
@webNeat thanks for the update, I'll be waiting for this feature on a next release, this would be really helpful!
webNeat commented
version 1.3.0 released containing this feature. Enjoy!
webNeat commented
Yes sure, I updated the README.
In summary:
- to generate a model without timestamps you do:
wn:model ... --timestamps=false
- migrations are generated without additional columns by default now. when needed, these columns (including timestamps) can be specified using the
--add
option:
wn:migration ... --add=timestamps,softDeletes
- the same
--add
option was added town:resource
as well as the yaml structure forwn:resources