Skip to content
This repository has been archived by the owner on Aug 28, 2018. It is now read-only.

Load fixture files individually #36

Open
ebarbeito opened this issue Mar 6, 2014 · 4 comments
Open

Load fixture files individually #36

ebarbeito opened this issue Mar 6, 2014 · 4 comments

Comments

@ebarbeito
Copy link

I wonder if it would be possible to load fixtures individually.

Adding a new --fixture option that let you load a single fixture file specified inside config.yml

This could have some benefits:

  • Flexible data population in a very new database
  • Periodic data loads of specific entities, purging the old data and importing newest from the current fixture file (this can be a modified version each time you make the data load).

If you think this could be useful I can start to give it a try.

@khepin
Copy link
Owner

khepin commented Mar 6, 2014

Not sure what you mean by individually, is it a single fixture inside of a file, or a single file?

Feel free to send a PR for that yeah.

@ebarbeito
Copy link
Author

I was reffering to a single file. Issue title edited

@khepin
Copy link
Owner

khepin commented Mar 9, 2014

I won't personally develop the feature, but if this is something you need I'll be happy to review and merge it.

@RowanReid
Copy link

I do this by assigning each fixture file a unique tag and then importing this tag

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

No branches or pull requests

3 participants