mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
[GH-ISSUE #114] PostgreSQL as backend. Migration not work. #75
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kenmlee on GitHub (May 14, 2016).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/114
When I try to use PostgreSQL as database backend. The app "logs" report error when I try to use "python manage.py migrate".
After check I think there are some bugs ( maybe it's a bug of Django 1.8 ):
In logs/migrations/0001_initial.py
Pay attention to "('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),"
In logs/migrations/0002_xxxxx.py
For field "user", it should be "migrations.AlertField" just like field "date". But it use "migrations.AddField".
Then I run "python manage.py squashmigrations logs 0003", it generate two fields with the same name "user" as:
The last two line.