Upgrading from 0.7x to 0.9

47 views
Skip to first unread message

Noe Nieto

unread,
Nov 5, 2014, 8:06:38 PM11/5/14
to djang...@googlegroups.com
Seems like 0.9 is the way to go for LFS, right?

I'm skimming throug http://lightning-fast-shop.readthedocs.org/en/latest/introduction/upgrade_notes.html

Are these upgrade notes still valid for 0.9.x?

--
---
Noe Nieto
NNieto Consulting Services
M: nni...@noenieto.com
W: http://noenieto.com
T:  @tzicatl
Li: Perfil en LinkedIn

Denis Darii

unread,
Oct 22, 2015, 8:46:30 AM10/22/15
to django-lfs
Hi Noe,

I lose a lot of time to migrate my production postgres db from 0.7 to 0.9.
here is my guidelines:

1.    Install lfs 0.9 as explained here: http://docs.getlfs.com/en/version-0.9/introduction/installation.html

2.    Backup your existing database


3.    Enter your existing database to lfs_project/settings.py


4.    Copy this file
: https://gist.githubusercontent.com/DNX/b216b8c238b5d9ddba46/raw/661723067636d3eb9dc66910d875ced1f97d93ea/lfs_migrate.py
 in core/management/commands/ of your lfs package
    $ wget https://gist.githubusercontent.com/DNX/b216b8c238b5d9ddba46/raw/661723067636d3eb9dc66910d875ced1f97d93ea/lfs_migrate.py
    $ mv lfs_migrate.py /your/lfsinstallation/eggs/django_lfs-0.9.0-py2.7.egg/lfs/core/management/commands/lfs_migrate.py


5.    Run this migrations:

    bin/django lfs_migrate
    bin/django migrate addresses --fake 0001
    bin/django migrate cart --fake 0001
    bin/django migrate catalog --fake 0001
    bin/django migrate core --fake 0001
    bin/django migrate criteria --fake 0001
    bin/django migrate customer --fake 0001
    bin/django migrate customer_tax --fake 0001
    bin/django migrate discounts --fake 0001
    bin/django migrate export --fake 0001
    bin/django migrate marketing --fake 0001
    bin/django migrate manufacturer --fake 0001
    bin/django migrate order --fake 0002
    bin/django migrate page --fake 0001
    bin/django migrate payment --fake 0001
    bin/django migrate portlet --fake 0002
    bin/django migrate shipping --fake 0001
    bin/django migrate supplier --fake 0001
    bin/django migrate tax --fake 0001
    bin/django migrate voucher --fake 0001
    bin/django migrate

Hope this will save your time.
Denis

Noe Nieto

unread,
Oct 22, 2015, 11:51:08 AM10/22/15
to djang...@googlegroups.com
Hi Denis!

Thanks for the reply and the notes! I'm going to test this as soon as I find some free time and i'll thell you how did I do.


--
Noe


--
You received this message because you are subscribed to the Google Groups "django-lfs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-lfs+...@googlegroups.com.
To post to this group, send email to djang...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-lfs.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages