我正在尝试使用 valkyrie 将我的本地 mysql 数据库推送到我的 heroku postgres 数据库,其中包含以下内容:
valkyrie mysql://localhost/themedb postgres://DATABASE__COLOR_URL/here
它似乎开始运行良好,但随后遇到了一个我无法弄清楚的约束错误:
Transferring 17 tables:
auth_group: 100% |=========================================| Time: 00:00:02
auth_group_per: 100% |=========================================| Time: 00:00:00
auth_message: 100% |=========================================| Time: 00:00:00
auth_permissio: 100% |=========================================| Time: 00:00:02
auth_user: 100% |=========================================| Time: 00:00:00
auth_user_grou: 100% |=========================================| Time: 00:00:00
C:/Program Files (x86)/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/sequel-3.31.0/lib/sequel/adapters/postgre
s.rb:181:in `async_exec': PG::Error: ERROR: relation "user_id" already exists(Sequel::DatabaseError)
我认为这些模型来自django.contrib.auth
,我不明白为什么会出现关系错误。有任何想法吗?