第一篇文章,所以希望我在正确的地方。
当我试图安装红矿山插件'Wiki扩展‘时,当我试图运行"rake db:migrate_plugins RAILS_ENV=production“命令时,我总是陷入困境。
我在移动服务器,我有点过头了。在谷歌上没有发现任何帮助我的东西,尽管我可能错过了一些东西。
我在输出中粘贴了--跟踪:
(in /srv/www/vastpark.org/redmine)
** Invoke db:migrate_plugins (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate_plugins
Migrating engines...
Migrating acts_as_activity_provider...
Migrating acts_as_attachable...
Migrating acts_as_customizable...
Migrating acts_as_event...
Migrating acts_as_list...
Migrating acts_as_searchable...
Migrating acts_as_tree...
Migrating acts_as_versioned...
Migrating acts_as_watchable...
Migrating awesome_nested_set...
Migrating classic_pagination...
Migrating coderay-0.9.2...
Migrating gravatar...
Migrating open_id_authentication...
Migrating prepend_engine_views...
Migrating redmine_wiki_extensions...
== CreateWikiExtensionsComments: migrating ===================================
-- create_table(:wiki_extensions_comments)
rake aborted!
An error has occurred, all later migrations canceled:
Mysql::Error: Table 'wiki_extensions_comments' already exists: CREATE TABLE 'wiki_extensions_comments' ('id' int(11) DEFAULT NULL auto_increment PRIMARY KEY, 'wiki_page_id' int(11), 'key_word' varchar(255), 'user_id' int(11), 'comment' text, 'created_at' datetime, 'updated_at' datetime) ENGINE=InnoDB发布于 2010-09-06 01:53:30
您可以尝试在wiki_extensions_comments表上执行备份--删除它并重新运行迁移(然后再恢复表)--使用连接到Redmine MySQL数据库的MySQL工作台或管理员,或者您可以移动供应商/插件目录的插件,然后运行迁移,然后将其复制回来。
https://serverfault.com/questions/176811
复制相似问题