Hi,
thanks I tried to migrate production server with the same code and I got still some errors. I had working 0.6 version with some setup and tried now to migrate to 0.7:
* upgraded python packages with pip command (lfs to 0.6.x -> 0.7.4, django 1.3->1.4, ...)
* ran ../manage.py syncdb:
Syncing...
Creating tables ...
Creating table south_migrationhistory
Creating table catalog_productattachment
Creating table portlet_forsaleportlet
Creating table portlet_featuredportlet
Creating table customer_tax_customertax_countries
Creating table customer_tax_customertax
Creating table lfs_order_numbers_ordernumbergenerator
The following content types are stale and need to be deleted:
auth | message
Any objects related to these content types by a foreign key will also
be deleted. Are you sure you want to delete these content types?
If you're unsure, answer 'no'.
Type 'yes' to continue, or 'no' to cancel: yes
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Synced:
> predajsperkov.sitetheme
> compressor
> django.contrib.admin
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.staticfiles
> django.contrib.sites
> django.contrib.flatpages
> django.contrib.redirects
> django.contrib.sitemaps
> djangorestframework
> django_countries
> south
> debug_toolbar
> pagination
> reviews
> sorl.thumbnail
> tagging
> portlets
> lfs.core
> lfs.cart
> lfs.catalog
> lfs.checkout
> lfs.criteria
> lfs.customer
> lfs.discounts
> lfs.export
> lfs.gross_price
> lfs.integrationtests
> lfs.marketing
> lfs.manufacturer
> lfs.net_price
> lfs.order
> lfs.page
> lfs.payment
> lfs.portlet
> lfs.search
> lfs.shipping
> lfs.supplier
> lfs.tax
> lfs.customer_tax
> lfs.voucher
> lfs_order_numbers
> postal
Not synced (use migrations):
- paypal.standard.ipn
- paypal.standard.pdt
* lfs_migrate:
../manage.py lfs_migrate
Detected version: 0.6
Traceback (most recent call last):
File "../manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/lfs/core/management/commands/lfs_migrate.py", line 40, in handle
self.migrate_to_07(application, version)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/lfs/core/management/commands/lfs_migrate.py", line 58, in migrate_to_07
db.add_column("catalog_product", "type_of_quantity_field", models.PositiveSmallIntegerField(_(u"Type of quantity field"), null=True, blank=True, choices=QUANTITY_FIELD_TYPES))
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/south/db/generic.py", line 282, in add_column
self.execute(sql)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/south/db/generic.py", line 150, in execute
cursor.execute(sql, params)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/django/db/backends/util.py", line 40, in execute
return self.cursor.execute(sql, params)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/django/db/backends/mysql/base.py", line 114, in execute
return self.cursor.execute(query, args)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/var/www/.virtualenv/lfs/lib/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.DatabaseError: (1060, "Duplicate column name 'type_of_quantity_field'")
Thanks,
Martin