我正在将现有的Sentry安装转移到新计算机上,因此我的数据库不干净(即只是从旧备份中恢复)。
当我运行$ sentry upgrade
时,我收到错误:
Running migrations for django:
- Migrating forwards to 0001_initial.
> django:0001_initial
FATAL ERROR - The following SQL query failed: CREATE TABLE "djkombu_queue" ("id" serial NOT NULL PRIMARY KEY, "name" varchar(200) NOT NULL UNIQUE);
The error was: relation "djkombu_queue" already exists
Error in migration: django:0001_initial
# Traceback...
django.db.utils.DatabaseError: relation "djkombu_queue" already exists
答案 0 :(得分:3)
请参阅:http://sentry.readthedocs.org/en/latest/upgrading/index.html#conflicts-with-kombu-transport-django
显然kombu最近添加了对South的支持,这导致了这个错误,因为你在使用South之前运行了一个版本。
解决方案是简单地运行:
sentry migrate kombu.transport.django 0001 --fake