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

Migrating sites from Oscar 1.x #18

Open
kunkku opened this issue Feb 19, 2020 · 3 comments
Open

Migrating sites from Oscar 1.x #18

kunkku opened this issue Feb 19, 2020 · 3 comments

Comments

@kunkku
Copy link

kunkku commented Feb 19, 2020

When upgrading a site to Oscar 2.0, what is the recommended way to migrate existing promotional content to this new standalone application?

@solarissmoke
Copy link
Member

I think this approach should work:

  1. dumpdata from the old promotions app pre upgrade to Oscar 2.
  2. Modify that dump to change the app name to oscar_promotions.
  3. loaddata after upgrading to Oscar 2.

There may be some other small adjustments needed for this to work, but the model structures haven't changed so broadly speaking this should be feasible.

@kunkku
Copy link
Author

kunkku commented Feb 21, 2020

Would it be useful to implement a management command to do such a migration?

@solarissmoke
Copy link
Member

It wouldn't be possible to have an automated command - as you cannot have both the old promotions app and the new one installed at the same time. It might be possible to make one that dumps and manipulates data ready for loading after upgrade.

It seems like very few projects were actually using the promotions app, so this is unlikely to be a priority for us. If you're willing/able to do that then it would be appreciated and I'm happy to review.

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

No branches or pull requests

2 participants