Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling timestamps in wn:resource #15

Closed
denizdogan opened this issue Aug 23, 2016 · 7 comments
Closed

Disabling timestamps in wn:resource #15

denizdogan opened this issue Aug 23, 2016 · 7 comments

Comments

@denizdogan
Copy link

Is there any way to generate resources with public $timestamps = false; on the models and similar for the migration?

@webNeat
Copy link
Owner

webNeat commented Aug 25, 2016

Hello,

I am working on version 2.0 of the generators and I will try to make it possible 😄

@TCB13
Copy link

TCB13 commented Jan 11, 2017

@webNeat any timeline for this version 2.0? Thank you!

@webNeat
Copy link
Owner

webNeat commented Jan 12, 2017

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
Copy link

TCB13 commented Jan 15, 2017

@webNeat thanks for the update, I'll be waiting for this feature on a next release, this would be really helpful!

@webNeat
Copy link
Owner

webNeat commented Jan 18, 2017

version 1.3.0 released containing this feature. Enjoy!

@webNeat webNeat closed this as completed Jan 18, 2017
@TCB13
Copy link

TCB13 commented Jan 18, 2017

@webNeat awesome! you rock! Was this documented?

@webNeat
Copy link
Owner

webNeat commented Jan 18, 2017

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 to wn:resource as well as the yaml structure for wn:resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants