Code Monkey home page Code Monkey logo

Comments (9)

mkoistinen avatar mkoistinen commented on July 27, 2024

I'm able to reproduce this issue using MySQL 5.6.22. OP reported he was using 5.6.17 here. OP is running Django 1.6.x and Python 2.7.9.

from aldryn-newsblog.

Nalanae avatar Nalanae commented on July 27, 2024

Tested some more with MySQL query logging on. I've taken part of the log that seems to be migration 0016. What I see is that the entire migration is completed, but then the constraint is added again which gives the error and a rollback.

I've tested with MySQL 5.6.23 and 5.5.41, both seem to have the same problems. I use Django 1.6, South 1.0.2 and MySQL-python 1.2.5.

http://pastebin.com/gH8y8nWG

from aldryn-newsblog.

mkoistinen avatar mkoistinen commented on July 27, 2024

I've now tried it with and without using 'init_command': 'SET storage_engine=INNODB'... no difference. All tests run fine. It'd be easy enough for me to make the change that I suggested to make it work, but I think its more important to understand why. Also, can you supply the output of a pip freeze?

from aldryn-newsblog.

Nalanae avatar Nalanae commented on July 27, 2024
Django==1.6.10
MySQL-python==1.2.5
Pillow==2.7.0
South==1.0.2
Unidecode==0.04.17
YURL==0.13
aldryn-apphooks-config==0.1.4
aldryn-boilerplates==0.6
aldryn-categories==0.1.2
aldryn-common==0.1.1
aldryn-newsblog==0.3.0
aldryn-people==0.5
aldryn-reversion==0.0.1
backport-collections==0.1
cmsplugin-filer==0.10.1
django-appconf==1.0.1
django-appdata==0.1.4
django-classy-tags==0.6.1
django-cms==3.0.12
django-filer==0.9.9
django-mptt==0.6.1
django-parler==1.3
django-phonenumber-field==0.7.2
django-polymorphic==0.6.1
django-reversion==1.8.5
django-sekizai==0.8.1
django-sortedm2m==0.9.4
django-taggit==0.12.3
django-treebeard==3.0
djangocms-admin-style==0.2.5
djangocms-text-ckeditor==2.4.3
easy-thumbnails==2.2
html5lib==0.999
phonenumbers==7.0.2
python-dateutil==2.4.1
pytz==2014.10
six==1.9.0
vobject==0.6.6
wheel==0.24.0

from aldryn-newsblog.

mkoistinen avatar mkoistinen commented on July 27, 2024

@Nalanae are you able to run the tests in the aldryn-newsblog package?

pip install -r test_requirements/django-1.6.txt
./test

from aldryn-newsblog.

Nalanae avatar Nalanae commented on July 27, 2024

When I run the tests against SQLite or MySQL they run fine. However, when I check a MySQL query log of just the testrun, I can't find any mention of the problematic constraints. I'll investigate further into the log.

If you want to have a look into the log: https://dl.dropboxusercontent.com/u/6635899/mysql.log.zip

from aldryn-newsblog.

Nalanae avatar Nalanae commented on July 27, 2024

When I change the call to djangocms-helper to use migrations I can force the error.

djangocms-helper aldryn_newsblog --cms test --migrate --extra-settings=test_settings $@

from aldryn-newsblog.

mkoistinen avatar mkoistinen commented on July 27, 2024

@Nalanae, @mrgix Very useful, thanks to both of you.

from aldryn-newsblog.

mkoistinen avatar mkoistinen commented on July 27, 2024

Should be fixed by #132

from aldryn-newsblog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.