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

Unknown table peers_networks #13

Open
cejkato2 opened this issue May 15, 2017 · 5 comments
Open

Unknown table peers_networks #13

cejkato2 opened this issue May 15, 2017 · 5 comments

Comments

@cejkato2
Copy link

Using branch django18upgrade, I get the following error:

OperationalError at /admin/peers/peer/add/

no such table: peer_networks

Request Method: 	POST
Request URL: 	http://localhost:8000/admin/peers/peer/add/
Django Version: 	1.8
Exception Type: 	OperationalError
Exception Value: 	

no such table: peer_networks

Steps to reproduce:

  1. in admin add new peer range
  2. in admin add new peer with the chosen new peer range

showmigrations says that all migrations are done, so I assume something is missing there.
Can you see the same error?

@cejkato2
Copy link
Author

Any news?

@safts
Copy link
Contributor

safts commented Jun 13, 2017

Is this a new setup? Or did you upgrade from the previous (1.4) version?

@cejkato2
Copy link
Author

I tried to create a completely new installation in VM.

@safts
Copy link
Contributor

safts commented Jun 13, 2017

I have identified the issue. It seems that some migrations were missing, but in our case this did not appear since we only tested upgrading the project, in which scenario the missing fields (or tables, in that case) the migrations needed to create were already there. I am working on a detailed fix right now. Your issue should be resolved if you run

./manage.py makemigrations
./manage.py migrate

or you could wait for the fix.

@safts
Copy link
Contributor

safts commented Jun 20, 2017

@cejkato2 I have merged the fixes. Please give them a check and let me know.

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