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

Migrations fail when installing from pypi #6

Closed
nemesifier opened this issue Jun 30, 2016 · 3 comments
Closed

Migrations fail when installing from pypi #6

nemesifier opened this issue Jun 30, 2016 · 3 comments

Comments

@nemesifier
Copy link

It seems some additional migrations are left in the package downloaded from pypi.

I get the following error when applying migrations:

django.db.utils.OperationalError: table "django_ca_certificateauthority" already exists
@mathiasertl
Copy link
Owner

I can reproduce the issue, I'm testing a new version right now, will be released shortly.

@mathiasertl
Copy link
Owner

mathiasertl commented Jun 30, 2016

OK, I just released version 1.2.2, which fixes the issue (no changes otherwise).

django_ca currently has only one migration. For some reason 1.2.1 included some old migrations from before 1.0.0, they should never have been included (and were removed long ago, I don't know where setup.py picked them up).

To fix the issue on your side, please do pip install -U django-ca. The safest thing probably is to drop the tables in the database and delete migrations from the migrations table and just do the migrations again. Since you just installed, I assume you don't have any data.

If you need further help, please let me know!

@mathiasertl
Copy link
Owner

Seems to work now? ^^

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